42 lines
662 B
TOML
42 lines
662 B
TOML
[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"]
|
|
|