Skip to content

Commit

Permalink
Define STM32_DMA_REQUIRED when using DMA-based WS2812 driver on STM32. (
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc authored and drashna committed Sep 30, 2020
1 parent a29cb23 commit d5f4fc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5f4fc7

Please sign in to comment.