aboutsummaryrefslogtreecommitdiffstats
path: root/sw/Makefile
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-10-30 11:26:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-10-30 11:26:46 +0100
commit4bd5855f386801a594636dc2848376d56700f066 (patch)
treeeb83250116dace0452cd5d975a2daede53c53a5f /sw/Makefile
parente3cb8a57512c591197264b89801ed43861fee840 (diff)
downloadglutte-batteries-4bd5855f386801a594636dc2848376d56700f066.tar.gz
glutte-batteries-4bd5855f386801a594636dc2848376d56700f066.tar.bz2
glutte-batteries-4bd5855f386801a594636dc2848376d56700f066.zip
Add disjoncteur state message
Diffstat (limited to 'sw/Makefile')
-rw-r--r--sw/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/Makefile b/sw/Makefile
index 86ff8a6..25922be 100644
--- a/sw/Makefile
+++ b/sw/Makefile
@@ -128,6 +128,16 @@ fuse:
interactive:
$(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -t -v
+program_pp: $(APP_HEX)
+ $(SIZE) -C $(BUILD_DIR)/$(APP_ELF)
+ $(AVRDUDE) $(AVRDUDE_FLAGS) -c dragon_pp -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U flash:w:$(BUILD_DIR)/$(APP_HEX) -v
+
+fuse_pp:
+ $(AVRDUDE) $(AVRDUDE_FLAGS) -c dragon_pp -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -U lfuse:w:0x7e:m -U hfuse:w:0xd9:m -U efuse:w:0xfc:m -v
+
+interactive_pp:
+ $(AVRDUDE) $(AVRDUDE_FLAGS) -c dragon_pp -P $(AVRDUDE_DEV) -p $(AVRDUDE_PART) -t -v
+
help:
@echo "targets: all, program, fuse, interactive"