From 2044f082e79351e14a6035ef294a47d1bdda7ac6 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 20 May 2012 03:04:09 +0000 Subject: added reset func capability git-svn-id: https://svn.spreadspace.org/avr/trunk@17 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- include.mk | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'include.mk') 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) -- cgit v1.2.3