diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-05-20 03:04:09 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-05-20 03:04:09 +0000 |
commit | 2044f082e79351e14a6035ef294a47d1bdda7ac6 (patch) | |
tree | ef8556e0e419b4116e39ead6d66606b038611bb6 | |
parent | moved program to flash and set program to (erase, flash, run) (diff) |
added reset func capability
git-svn-id: https://svn.spreadspace.org/avr/trunk@17 aa12f405-d877-488e-9caf-2d797e2a1cc7
-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) |