summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1f3dcc7..bf5d355 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
.PHONY: flash love
-TARGETS=door lightctrl
+TARGETS=door lightctrl lightctrl_v2
CFLAGS_OPT=-Os \
-fpredictive-commoning -fmerge-all-constants -fmodulo-sched -fmodulo-sched-allow-regmoves \
@@ -11,6 +11,7 @@ CFLAGS_LD=-Wl,-T,avr4-signature.x
CFLAGS_=${CFLAGS_WARN} ${CFLAGS_OPT} ${CFLAGS_LD} ${CFLAGS}
MCU_door=48
MCU_lightctrl=88
+MCU_lightctrl_v2=88
AVRDUDE=avrdude
love: $(foreach target,$(TARGETS),$(target).elf)
@@ -18,8 +19,8 @@ love: $(foreach target,$(TARGETS),$(target).elf)
ifdef TARGET
flash: ${TARGET}.flash
- $(AVRDUDE) -p m$(MCU_$(basename $<)) -c stk500v2 -P avrdoper -y \
- -U eeprom:r:eeprom:r
+# $(AVRDUDE) -p m$(MCU_$(basename $<)) -c stk500v2 -P avrdoper -y \
+# -U eeprom:r:eeprom:r
$(AVRDUDE) -p m$(MCU_$(basename $<)) -c stk500v2 -P avrdoper -y \
-U flash:w:$< \
-U eeprom:w:eeprom:r