2021-01-05 17:56:16 +01:00
|
|
|
# Copyright (c) 2021 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
config MODULE_SERVO
|
2022-08-02 22:13:45 +02:00
|
|
|
bool "Servo motor driver"
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
select MODULE_SERVO_SAUL if MODULE_SAUL_DEFAULT
|
|
|
|
|
|
|
|
config MODULE_SERVO_SAUL
|
|
|
|
bool "SAUL integration of the servo motor driver"
|
2021-01-05 17:56:16 +01:00
|
|
|
depends on TEST_KCONFIG
|
2022-08-02 22:13:45 +02:00
|
|
|
|
|
|
|
choice SERVO_DRIVER_BACKEND
|
|
|
|
bool "Servo motor driver backend"
|
|
|
|
depends on MODULE_SERVO
|
|
|
|
default MODULE_SERVO_PWM if HAS_PERIPH_PWM
|
|
|
|
default MODULE_SERVO_TIMER if !HAS_PERIPH_PWM && HAS_PERIPH_TIMER_PERIODIC
|
|
|
|
|
|
|
|
config MODULE_SERVO_PWM
|
|
|
|
bool "periph_pwm based Servo Motor driver backend (preferred)"
|
|
|
|
depends on HAS_PERIPH_PWM
|
|
|
|
# PWM prescaler on nRF5x MCUs cannot generate a 50 Hz signal
|
|
|
|
depends on !HAS_CPU_NRF51
|
|
|
|
depends on !HAS_CPU_NRF52
|
2023-07-08 16:50:30 +02:00
|
|
|
depends on !HAS_CPU_NRF53
|
2022-08-02 22:13:45 +02:00
|
|
|
depends on !HAS_CPU_NRF9160
|
2021-01-05 17:56:16 +01:00
|
|
|
select MODULE_PERIPH_PWM
|
2022-08-02 22:13:45 +02:00
|
|
|
select SERVO_DRIVER_BACKEND
|
|
|
|
|
|
|
|
config MODULE_SERVO_TIMER
|
|
|
|
bool "periph_timer based Servo Motor driver backend"
|
|
|
|
depends on HAS_PERIPH_TIMER
|
|
|
|
depends on HAS_PERIPH_TIMER_PERIODIC
|
|
|
|
select MODULE_PERIPH_TIMER
|
|
|
|
select MODULE_PERIPH_TIMER_PERIODIC
|
|
|
|
select SERVO_DRIVER_BACKEND
|
|
|
|
endchoice
|