From 1a8833ae04ecb42d4cd46730ce5af671c56008af Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Fri, 11 Mar 2011 14:15:50 -0500 Subject: [PATCH] Add target for flashing --- rmslog/rmslog_user.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rmslog/rmslog_user.mk b/rmslog/rmslog_user.mk index 0168e73..b3a1285 100644 --- a/rmslog/rmslog_user.mk +++ b/rmslog/rmslog_user.mk @@ -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 = \ -- 2.25.1