1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 00:09:46 +01:00

drivers/servo: update build dependencies for Nordic families

Signed-off-by: dylad <dylan.laduranty@mesotic.com>
This commit is contained in:
dylad 2023-07-08 16:50:30 +02:00
parent 328d84fcf1
commit ef9dca0108
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ config MODULE_SERVO_PWM
# PWM prescaler on nRF5x MCUs cannot generate a 50 Hz signal
depends on !HAS_CPU_NRF51
depends on !HAS_CPU_NRF52
depends on !HAS_CPU_NRF53
depends on !HAS_CPU_NRF9160
select MODULE_PERIPH_PWM
select SERVO_DRIVER_BACKEND

View File

@ -5,7 +5,7 @@ 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%, $(CPU_FAM)))
ifneq (,$(filter nrf5% nrf9160, $(CPU_FAM)))
USEMODULE += servo_timer
else
USEMODULE += servo_pwm