summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2012-06-01 14:31:16 +0200
committerFlorent Duchon2012-12-24 17:47:57 +0100
commite06f804c6ef72fb6381cb60a4c7a5189cf6a9c51 (patch)
tree72c7d0aeedab9846d5563dbf0962164441ade051 /digital/beacon
parentd8846cff1c4bcb5d325c870458c01fae9e1cf25f (diff)
digital/beacon: add specific rules to flash each lol
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/digital/beacon/src/Makefile b/digital/beacon/src/Makefile
index b7dffc4f..2ea32755 100644
--- a/digital/beacon/src/Makefile
+++ b/digital/beacon/src/Makefile
@@ -31,10 +31,27 @@ avr:
$(MAKE) -C makefiles/ -f Makefile_$(CONFIG_NAME) all APP_NAME=beacon_$$count BITCLOUD_PATH=$(BITCLOUD_PATH) APB_AVR_PATH=$(APB_AVR_PATH) LOL_NUMBER=$$count;\
done;\
-flash:
- ../../dev2/tools/dev2ctl.py -s $(DEV2)
- avrdude -c stk500v2 -P /dev/ttyUSB1 -p atmega1281 -B3 -U flash:w:obj/beacon_$(TARGET).hex
-
+flash0:
+ make NUMBER=0 avr
+ ../../dev2/tools/dev2ctl.py -s 1
+ avrdude -c stk500v2 -P /dev/ttyUSB1 -p atmega1281 -B3 -U flash:w:obj/beacon_0.hex
+
+flash1:
+ make NUMBER=1 avr
+ ../../dev2/tools/dev2ctl.py -s 1
+ avrdude -c stk500v2 -P /dev/ttyUSB1 -p atmega1281 -B3 -U flash:w:obj/beacon_1.hex
+
+flash2:
+ make NUMBER=2 avr
+ ../../dev2/tools/dev2ctl.py -s 1
+ avrdude -c stk500v2 -P /dev/ttyUSB1 -p atmega1281 -B3 -U flash:w:obj/beacon_2.hex
+
+flash3:
+ make NUMBER=3 avr
+ ../../dev2/tools/dev2ctl.py -s 1
+ avrdude -c stk500v2 -P /dev/ttyUSB1 -p atmega1281 -B3 -U flash:w:obj/beacon_3.hex
+
+
clean:
for count in $(NUMBER); do\
$(MAKE) -C makefiles/$(PROJECT_NAME) -f Makefile_$(CONFIG_NAME) clean APP_NAME=beacon_$$count BITCLOUD_PATH=$(BITCLOUD_PATH);\