aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-01-14 22:03:48 +0000
committerfauxpark <fauxpark@gmail.com>2020-01-15 09:03:48 +1100
commit61cd180163cbe1324bde25abcc95d0c380459b70 (patch)
tree04451c8e5d9ab28439f842a00ce1e9a09b1447ef /common_features.mk
parentb69b1ad4fcd9f011153973f2ccec004ea004ecb6 (diff)
downloadfirmware-61cd180163cbe1324bde25abcc95d0c380459b70.tar.gz
firmware-61cd180163cbe1324bde25abcc95d0c380459b70.tar.bz2
firmware-61cd180163cbe1324bde25abcc95d0c380459b70.zip
Add ws2812 driver type define (#7888)
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk
index 01ceb8278..09d01debd 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -278,6 +278,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
$(error WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver)
endif
+ OPT_DEFS += -DWS2812_DRIVER_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))
+
ifeq ($(strip $(WS2812_DRIVER)), bitbang)
SRC += ws2812.c
else