Initial commit
This commit is contained in:
41
Makefile.toml
Normal file
41
Makefile.toml
Normal file
@ -0,0 +1,41 @@
|
||||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build"]
|
||||
|
||||
[tasks.objcopy]
|
||||
command = "arm-none-eabi-objcopy"
|
||||
args = [
|
||||
"-O", "binary",
|
||||
"target/thumbv6m-none-eabi/debug/neowatch",
|
||||
"target/thumbv6m-none-eabi/debug/neowatch.bin",
|
||||
]
|
||||
|
||||
[tasks.set_tty]
|
||||
command = "stty"
|
||||
args = [
|
||||
"-F", "/dev/ttyACM0",
|
||||
"ospeed", "1200",
|
||||
]
|
||||
|
||||
[tasks.upload]
|
||||
command = "bossac"
|
||||
args = [
|
||||
"--info",
|
||||
"--debug",
|
||||
"--port=/dev/ttyACM0",
|
||||
"--force_usb_port=true",
|
||||
"--erase",
|
||||
"--write",
|
||||
"--verify",
|
||||
"target/thumbv6m-none-eabi/debug/neowatch.bin",
|
||||
"--reset",
|
||||
]
|
||||
dependencies = ["build"]
|
||||
#dependencies = ["set_tty", "build"]
|
||||
|
||||
[tasks.test]
|
||||
disabled = true
|
||||
|
||||
[tasks.default]
|
||||
dependencies = ["upload"]
|
||||
|
||||
Reference in New Issue
Block a user