From 60b3dced8af58ea3ffd7f46ed24262af21bfe440 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Sat, 13 Sep 2025 02:15:13 +0200 Subject: [PATCH] give DMX_ADDRESS via cmdline --- Makefile | 6 +++++- compile_flags.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1e35bda..12c84bd 100644 --- a/Makefile +++ b/Makefile @@ -115,7 +115,11 @@ AS_DEFS = # C defines C_DEFS = \ -DUSE_HAL_DRIVER \ --DSTM32G0B1xx +-DSTM32G0B1xx \ + +ifneq ($(DMX_ADDRESS),) + C_DEFS += -DDMX_ADDRESS=$(DMX_ADDRESS) +endif # AS includes diff --git a/compile_flags.txt b/compile_flags.txt index 9edb108..0e3149e 100644 --- a/compile_flags.txt +++ b/compile_flags.txt @@ -2,6 +2,7 @@ -mthumb -DUSE_HAL_DRIVER -DSTM32G0B1xx +-DDMX_ADDRESS=2 -IInc -IDrivers/STM32G0xx_HAL_Driver/Inc -IDrivers/STM32G0xx_HAL_Driver/Inc/Legacy