aboutsummaryrefslogtreecommitdiff
path: root/center_fw/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-10-02 01:23:31 +0200
committerjaseg <git@jaseg.de>2023-10-02 01:23:31 +0200
commitc8623eb4c6c1464ffd49e83126e66d71ba5bf862 (patch)
tree55151e10f1ca05f2539de59778e757819038678e /center_fw/Makefile
parent67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625 (diff)
download8seg-c8623eb4c6c1464ffd49e83126e66d71ba5bf862.tar.gz
8seg-c8623eb4c6c1464ffd49e83126e66d71ba5bf862.tar.bz2
8seg-c8623eb4c6c1464ffd49e83126e66d71ba5bf862.zip
8b10b issues
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