summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-05-20 03:04:09 +0000
committerChristian Pointner <equinox@spreadspace.org>2012-05-20 03:04:09 +0000
commit2044f082e79351e14a6035ef294a47d1bdda7ac6 (patch)
treeef8556e0e419b4116e39ead6d66606b038611bb6
parentmoved 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.mk18
1 files changed, 4 insertions, 14 deletions
diff --git a/include.mk b/include.mk
index 3c1496d..ca126b4 100644
--- a/include.mk
+++ b/include.mk
@@ -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)