1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/servo/Makefile.dep
dylad ef9dca0108 drivers/servo: update build dependencies for Nordic families
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2023-07-08 17:19:57 +02:00

23 lines
587 B
Makefile

ifneq (,$(filter saul,$(USEMODULE)))
DEFAULT_MODULE += servo_saul
endif
# if no servo driver implementation is chosen, we pick one
ifeq (,$(filter servo_pwm servo_timer,$(USEMODULE)))
# choose servo_pwm except for MCUs known to be incompatible
ifneq (,$(filter nrf5% nrf9160, $(CPU_FAM)))
USEMODULE += servo_timer
else
USEMODULE += servo_pwm
endif
endif
ifneq (,$(filter servo_pwm,$(USEMODULE)))
FEATURES_REQUIRED += periph_pwm
endif
ifneq (,$(filter servo_timer,$(USEMODULE)))
FEATURES_REQUIRED += periph_timer_periodic
FEATURES_REQUIRED += periph_gpio
endif