aboutsummaryrefslogtreecommitdiff
path: root/center_fw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'center_fw/Makefile')
-rw-r--r--center_fw/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/center_fw/Makefile b/center_fw/Makefile
index 681eb35..9c4872d 100644
--- a/center_fw/Makefile
+++ b/center_fw/Makefile
@@ -9,7 +9,7 @@ MUSL_DIR ?= upstream/musl
# Algorithm parameters
########################################################################################################################
-# - none -
+MODULE_ADDRESS ?= 0
########################################################################################################################
# High-level build parameters
@@ -30,7 +30,7 @@ DEVICE := STM32G030F4
ASM_SOURCES := startup.s
-C_SOURCES := src/main.c common/8b10b.c
+C_SOURCES := src/main.c common/8b10b.c common/crc32.c common/xorshift.c
CPP_SOURCES := # - none -
@@ -92,6 +92,7 @@ CFLAGS += -fno-common -ffunction-sections -fdata-sections
COMMON_CFLAGS += -O$(OPT) -std=gnu2x -g
COMMON_CFLAGS += $(DEVICE_DEFINES)
COMMON_CFLAGS += -DDEBUG=$(DEBUG)
+COMMON_CFLAGS += -DCONFIG_MODULE_ADDRESS=$(MODULE_ADDRESS)
GEN_HEADERS := $(BUILDDIR)/generated/waveform_tables.h