summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Makefile
diff options
context:
space:
mode:
authorFlorent Duchon2012-03-18 19:45:09 +0100
committerFlorent Duchon2012-04-03 19:34:39 +0200
commita49184a93f371aaa0283948070d2c264945c81c1 (patch)
tree9077e34321aa60f71e8a42c95f3849e3bab9ca3d /digital/beacon/src/Makefile
parentcbb9c4780b3551df44b0a1ca7ae08ca4497f1b02 (diff)
digital/beacon: avr flashing rule
Diffstat (limited to 'digital/beacon/src/Makefile')
-rw-r--r--digital/beacon/src/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/digital/beacon/src/Makefile b/digital/beacon/src/Makefile
index b336554b..34cf8bc5 100644
--- a/digital/beacon/src/Makefile
+++ b/digital/beacon/src/Makefile
@@ -26,12 +26,17 @@ simu:host
avr:
for count in $(NUMBER); do\
$(MAKE) -C makefiles/ -f Makefile_$(CONFIG_NAME) clean BITCLOUD_PATH=$(BITCLOUD_PATH);\
- $(MAKE) -C makefiles/ -f Makefile_$(CONFIG_NAME) all APP_NAME=Beacon_$$count BITCLOUD_PATH=$(BITCLOUD_PATH) LOL_NUMBER=$$count;\
+ $(MAKE) -C makefiles/ -f Makefile_$(CONFIG_NAME) all APP_NAME=beacon_$$count BITCLOUD_PATH=$(BITCLOUD_PATH) LOL_NUMBER=$$count;\
done;\
+flash:
+ avrdude -c stk500v2 -P /dev/ttyUSB1 -p atmega1281 -B3 -U flash:w:obj/beacon_$(TARGET).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);\
done;\
+
+