diff options
Diffstat (limited to 'include.mk')
-rw-r--r-- | include.mk | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -126,10 +126,6 @@ define DFU/flash $(DFU) $(MCU) flash $1 endef -define DFU/reset - $(DFU) $(MCU) reset -endef - define DFU/run $(DFU) $(MCU) start endef @@ -142,9 +138,6 @@ define teensy/flash $(teensy) -mmcu=$(MCU) -w -v $1 endef -define teensy/reset -endef - define teensy/run endef @@ -157,14 +150,11 @@ define avrdude/flash $(avrdude) -V -F -p $(MCU) -P $(AVRDUDE_PORT) -c $(PROG_TYPE) -b $(UPLOAD_RATE) -D -U flash:w:$1 endef -define avrdude/reset -endef - define avrdude/run endef ### Program Targets -program: erase flash run +program: reset erase flash run erase: $(call $(PROG)/$@,) @@ -172,8 +162,8 @@ erase: flash: $(HEXFILE) $(call $(PROG)/$@,$(HEXFILE)) -reset: - $(call $(PROG)/$@,) - run: $(call $(PROG)/$@,) + +reset: + @$(RESET_FUNC) |