From c8623eb4c6c1464ffd49e83126e66d71ba5bf862 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 2 Oct 2023 01:23:31 +0200 Subject: 8b10b issues --- center_fw/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'center_fw/Makefile') 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 -- cgit