mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 22:49:47 +01:00
sys/ztimer/kconfig: enable xtimer compat only with timer backend
This also moves the selection of MODULE_ZTIMER_PERIPH_TIMER from MODULE_ZTIMER_USEC to the visible symbol ZTIMER_USEC.
This commit is contained in:
parent
58b3c07423
commit
004da59672
@ -7,5 +7,5 @@
|
||||
config MODULE_MICROBIT
|
||||
bool "BBC micro:bit specific LED matrix handling"
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
select MODULE_MINEPLEX
|
||||
|
@ -16,7 +16,7 @@ config MODULE_AT30TSE75X
|
||||
depends on TEST_KCONFIG
|
||||
select MODULE_PERIPH_I2C
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
help
|
||||
AT30TSE75x temperature sensor with serial EEPROM.
|
||||
|
||||
|
@ -13,4 +13,4 @@ config MODULE_DSP0401
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_PERIPH_PWM
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
|
@ -13,7 +13,7 @@ config MODULE_SGP30
|
||||
select MODULE_PERIPH_I2C
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_PERIPH_TIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
|
||||
config MODULE_SGP30_STRICT
|
||||
bool "Strict reading period"
|
||||
|
@ -12,7 +12,7 @@ menuconfig MODULE_SM_PWM_01C
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_PERIPH_GPIO_IRQ
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
select MODULE_ZTIMER_PERIPH_TIMER
|
||||
|
||||
config MODULE_SM_PWM_01C_MA
|
||||
|
@ -8,7 +8,7 @@ config HAVE_ZTIMER_ONLY
|
||||
bool
|
||||
default y
|
||||
select MODULE_ZTIMER if MODULE_XTIMER
|
||||
select MODULE_ZTIMER_USEC if MODULE_XTIMER
|
||||
select MODULE_ZTIMER_PERIPH_TIMER if MODULE_XTIMER
|
||||
help
|
||||
Indicates that the board cannot generate a clock frequency suitable for
|
||||
xtimer and requires ztimer for conversion. ztimer is used as backend.
|
||||
|
@ -11,7 +11,7 @@ config PACKAGE_DRIVER_SX126X
|
||||
depends on HAS_PERIPH_SPI
|
||||
select MODULE_PERIPH_SPI
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
select MODULE_DRIVER_SX126X_HAL
|
||||
|
||||
config MODULE_DRIVER_SX126X_HAL
|
||||
|
@ -23,7 +23,7 @@ menuconfig MODULE_ARDUINO
|
||||
select MODULE_FMT
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_MSEC
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
|
||||
config MODULE_ARDUINO_PWM
|
||||
bool "PWM support for Arduino"
|
||||
|
@ -8,5 +8,5 @@
|
||||
config MODULE_BENCHMARK
|
||||
bool "Simple benchmarks support"
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
depends on TEST_KCONFIG
|
||||
|
@ -55,7 +55,7 @@ choice EVENT_TIMEOUT_IMPLEMENTATION
|
||||
config EVENT_TIMEOUT_ON_ZTIMER
|
||||
bool "Use ztimer as backend"
|
||||
select MODULE_EVENT_TIMEOUT_ZTIMER
|
||||
select MODULE_ZTIMER_USEC
|
||||
select ZTIMER_USEC
|
||||
|
||||
config EVENT_TIMEOUT_ON_XTIMER
|
||||
bool "Use xtimer as backend"
|
||||
|
@ -43,11 +43,11 @@ menu "Clocks"
|
||||
config ZTIMER_USEC
|
||||
bool "Microseconds"
|
||||
select MODULE_ZTIMER_USEC
|
||||
select MODULE_ZTIMER_PERIPH_TIMER
|
||||
select MODULE_ZTIMER
|
||||
|
||||
config MODULE_ZTIMER_USEC
|
||||
bool
|
||||
select MODULE_ZTIMER_PERIPH_TIMER
|
||||
|
||||
config MODULE_ZTIMER_MSEC
|
||||
bool "Milliseconds"
|
||||
@ -135,7 +135,7 @@ menu "xtimer and evtimer compatibility"
|
||||
|
||||
choice
|
||||
bool "xtimer compatibility"
|
||||
depends on MODULE_XTIMER && MODULE_ZTIMER
|
||||
depends on MODULE_XTIMER && MODULE_ZTIMER && MODULE_ZTIMER_PERIPH_TIMER
|
||||
|
||||
config MODULE_XTIMER_ON_ZTIMER
|
||||
bool "ztimer_usec as timer backend for xtimer"
|
||||
|
Loading…
Reference in New Issue
Block a user