summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/src/Makefile')
-rw-r--r--digital/io/src/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/digital/io/src/Makefile b/digital/io/src/Makefile
index 947b03c0..0f4a18ef 100644
--- a/digital/io/src/Makefile
+++ b/digital/io/src/Makefile
@@ -7,7 +7,7 @@ io_SOURCES = main.c asserv.c servo.avr.c eeprom.avr.c sharp.c pwm.c \
switch.avr.c chrono.c main_timer.avr.c servo_pos.c \
simu.host.c contact.c
# Modules needed for IO.
-MODULES = proto uart twi utils adc math/fixed path
+MODULES = proto uart twi utils adc math/fixed path trace flash spi
# Configuration file.
CONFIGFILE = avrconfig.h
# IO board use an ATMega128.
@@ -19,3 +19,8 @@ OPTIMIZE = -O2
FSM_SOURCES := top move filterbridge elevator cylinder init
# Include FSM makefile.
include $(BASE)/make/Makefile.fsm
+
+trace_event.h: trace.trc
+ PYTHONPATH=$(BASE)/../../host python $(BASE)/../../tools/trace/trace.py -t create -e $(@:%.h=%_t) -i $< -o $@
+
+main.c: trace_event.h