From 6769101c342d9fea5a2fdd2534662b760bce531b Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 12 Nov 2021 11:54:22 +0100 Subject: [PATCH] sys/arduino: add pseudomodule for the arduino_pwm feature --- makefiles/features_modules.inc.mk | 3 +++ sys/arduino/Makefile.include | 2 ++ 2 files changed, 5 insertions(+) diff --git a/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index 67de88cdec..b0e055b2b6 100644 --- a/makefiles/features_modules.inc.mk +++ b/makefiles/features_modules.inc.mk @@ -69,3 +69,6 @@ USEMODULE += $(filter efm32_coretemp, $(FEATURES_USED)) # if LC filter(s) is attached to the CPUs voltage regulator, use it USEMODULE += $(filter vdd_lc_filter_%,$(FEATURES_USED)) + +# select arduino_pwm pseudomodule if the corresponding feature is used +USEMODULE += $(filter arduino_pwm, $(FEATURES_USED)) diff --git a/sys/arduino/Makefile.include b/sys/arduino/Makefile.include index fba73396d7..c9a218d7db 100644 --- a/sys/arduino/Makefile.include +++ b/sys/arduino/Makefile.include @@ -24,3 +24,5 @@ INCLUDES += -I$(RIOTBASE)/sys/arduino/include # package, which is __horrible__ out of date. However, we cannot simply ignore # all Ubuntu users and instead simply manually enable C++11 support CXXEXFLAGS += -std=c++11 + +PSEUDOMODULES += arduino_pwm