summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/apbirthday/Makefile
diff options
context:
space:
mode:
authorNicolas Schodet2013-04-28 09:56:08 +0200
committerNicolas Schodet2013-04-28 09:56:08 +0200
commitec7fd3875d8e0699a92d7d75b504df9afa4a5cdc (patch)
tree3f4e9b0da9ecb8c39c4a3aa05ad0d9fe5100103f /digital/io-hub/src/apbirthday/Makefile
parenta8d0ca5fdee674be6fdbac5fc3927368c745bab0 (diff)
digital/io-hub/src/apbirthday: add FSM transitions debug stat
Diffstat (limited to 'digital/io-hub/src/apbirthday/Makefile')
-rw-r--r--digital/io-hub/src/apbirthday/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/digital/io-hub/src/apbirthday/Makefile b/digital/io-hub/src/apbirthday/Makefile
index 7f99d3dd..75c38c98 100644
--- a/digital/io-hub/src/apbirthday/Makefile
+++ b/digital/io-hub/src/apbirthday/Makefile
@@ -27,6 +27,11 @@ AVR_SOURCES = $(foreach module,$(AVR_MODULES),$($(subst /,_,$(module))_SOURCES))
# FSM.
INCLUDES += -I$(BASE)/../ai/src/fsm -I.
+FSM_EMBEDDED_STRINGS = n
+ifeq ($(FSM_EMBEDDED_STRINGS),y)
+ ANGFSM_OPTIONS += --ang-embedded-strings
+ DEFS += -DFSM_EMBEDDED_STRINGS=1
+endif
vpath angfsm.host.c $(BASE)/../ai/src/fsm
# Common files.
@@ -42,6 +47,6 @@ clean.project:
obj/main.stm32f4.o: angfsm_gen_arm_AI.h
angfsm_gen_arm_AI.arm.c: angfsm_gen_arm_AI.h
angfsm_gen_arm_AI.h: apbirthday.host
- ./$< --ang-gen arm && mv angfsm_gen_arm_AI.c angfsm_gen_arm_AI.arm.c
+ ./$< $(ANGFSM_OPTIONS) --ang-gen arm && mv angfsm_gen_arm_AI.c angfsm_gen_arm_AI.arm.c
host: all.host