summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/Makefile
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-10-18 23:47:05 +0200
committerMichael Buesch <mb@bu3sch.de>2008-10-18 23:47:05 +0200
commit4b0babc1b1daaece0d8de672f98adaf6cff5cdac (patch)
tree58c4bbac00ca8a76af06b006a392279ae6729907 /pressure_control/firmware/Makefile
parent4a914e8c559cd48173bed088e2122d1d35c8de9b (diff)
downloadcnc-4b0babc1b1daaece0d8de672f98adaf6cff5cdac.tar.xz
cnc-4b0babc1b1daaece0d8de672f98adaf6cff5cdac.zip
Add a loooot of stuff to pressure_control
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/Makefile')
-rw-r--r--pressure_control/firmware/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/pressure_control/firmware/Makefile b/pressure_control/firmware/Makefile
index 4024f02..a725d24 100644
--- a/pressure_control/firmware/Makefile
+++ b/pressure_control/firmware/Makefile
@@ -17,7 +17,7 @@ CFLAGS += "-Dinline=inline __attribute__((__always_inline__))"
LFUSE = 0xE0
HFUSE = 0xD9
-OBJECTS = main.o util.o valves.o sensor.o
+OBJECTS = main.o util.o valves.o sensor.o remote.o
NAME = pressure_control
BIN = $(NAME).bin
@@ -26,13 +26,15 @@ EEP = $(NAME).eep.hex
all: $(HEX)
-main.o: util.h calibration.h valves.h sensor.h
+main.o: util.h calibration.h valves.h sensor.h remote.h main.h
util.o: util.h calibration.h
-valves.o: valves.h
+valves.o: util.h valves.h
-sensor.o: sensor.h
+sensor.o: util.h sensor.h
+
+remote.o: util.h remote.h calibration.h main.h
%.s: %.c
$(CC) $(CFLAGS) -S $*.c
@@ -42,8 +44,8 @@ $(BIN): $(OBJECTS)
$(HEX): $(BIN)
$(OBJCOPY) -R.eeprom -O ihex $(BIN) $(HEX)
-# $(OBJCOPY) -j.eeprom --set-section-flags=.eeprom="alloc,load" \
-# --change-section-lma .eeprom=0 -O ihex $(BIN) $(EEP)
+ $(OBJCOPY) -j.eeprom --set-section-flags=.eeprom="alloc,load" \
+ --change-section-lma .eeprom=0 -O ihex $(BIN) $(EEP)
$(SIZE) $(BIN)
avrdude:
@@ -58,7 +60,7 @@ install_eeprom:
$(AVRDUDE) -B $(AVRDUDE_SPEED) -p $(AVRDUDE_ARCH) \
-c $(PROGRAMMER) -P $(PROGPORT) -U eeprom:w:$(EEP)
-install: all install_flash
+install: all install_flash install_eeprom
# Reset the microcontroller through avrdude
reset:
bues.ch cgit interface