Add target for flashing
authorBernie Innocenti <bernie@codewiz.org>
Fri, 11 Mar 2011 19:15:50 +0000 (14:15 -0500)
committerBernie Innocenti <bernie@codewiz.org>
Fri, 11 Mar 2011 19:15:50 +0000 (14:15 -0500)
rmslog/rmslog_user.mk

index 0168e7395251be961284423fcc0d739227b082b7..b3a12854913fd44c379ced167bc02ff72ac2787b 100644 (file)
@@ -4,8 +4,11 @@
 #
 
 # Programmer interface configuration, see http://dev.bertos.org/wiki/ProgrammerInterface for help
-rmslog_PROGRAMMER_TYPE = none
-rmslog_PROGRAMMER_PORT = none
+rmslog_PROGRAMMER_TYPE = avrdude
+rmslog_PROGRAMMER_PORT = /dev/ttyACM0
+
+flash: $(OUTDIR)/rmslog.hex
+       sudo avrdude -c arduino  -p $(rmslog_MCU) -P $(rmslog_PROGRAMMER_PORT) -e -U flash:w:$(OUTDIR)/rmslog.hex
 
 # Files included by the user.
 rmslog_USER_CSRC = \