summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2015-01-09 05:15:12 +0100
committerDavid Lamparter <equinox@diac24.net>2015-01-09 05:15:12 +0100
commit044992da8316bdb34b41745c390d7d61339da32a (patch)
tree61f5d4b781e6c6d8a22c0eac86dd9be3e6b6239b /Makefile
parent4ec7bc619f3b4af419ba4b2cc6115852ad854c30 (diff)
lightctrl_v2: rewritten light control AVR
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