From 800d3ff8c319f894ab32a4bbddb0421a3ca8106d Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 27 Mar 2022 22:10:07 +0200 Subject: [PATCH] fw-rust: Create "all" build task [CI SKIP] The "all" task configures a new mcu. It burns the fuses, configures the eeprom and flashs the firmware. --- firmware/rust/Makefile.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/rust/Makefile.toml b/firmware/rust/Makefile.toml index 59d36fa..e47cb7d 100644 --- a/firmware/rust/Makefile.toml +++ b/firmware/rust/Makefile.toml @@ -39,3 +39,7 @@ args = ["-p", "${MCU}", "-c", "${PROGRAMMER}", "-U", "eeprom:w:target/avr-atmega description = "Burn the fuses" command = "avrdude" args = ["-p", "${MCU}", "-c", "${PROGRAMMER}", "-U", "efuse:w:${EXTENDED_FUSE}:m", "-U", "hfuse:w:${HIGH_FUSE}:m", "-U", "lfuse:w:${LOW_FUSE}:m"] + +[tasks.all] +description = "Execute all tasks" +run_task = { name = ["fuses", "eeprom", "flash"] }