summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-08-25 18:58:22 +1000
committerDrashna Jael're <drashna@live.com>2020-09-30 03:42:08 -0700
commitd5f4fc7c2e61ccbf56ddd23be1ed14052c2f8dc0 (patch)
tree2a5eb9470efc68b11b3133d987ab525f9a865cea
parenta29cb23322aa3685931fad114a7c0e28774019e0 (diff)
Define STM32_DMA_REQUIRED when using DMA-based WS2812 driver on STM32. (#10127)
-rw-r--r--common_features.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk
index 855ee8cea1..04e27b267b 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -307,6 +307,12 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
SRC += ws2812.c
else
SRC += ws2812_$(strip $(WS2812_DRIVER)).c
+
+ ifeq ($(strip $(PLATFORM)), CHIBIOS)
+ ifeq ($(strip $(WS2812_DRIVER)), pwm)
+ OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE
+ endif
+ endif
endif
# add extra deps