mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/servo: update build dependencies for Nordic families
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
328d84fcf1
commit
ef9dca0108
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user