Define STM32_DMA_REQUIRED when using DMA-based WS2812 driver on STM32. (#10127)

This commit is contained in:
Nick Brassel
2020-08-25 18:58:22 +10:00
committed by Drashna Jael're
parent a29cb23322
commit d5f4fc7c2e

View File

@@ -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