mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/{x,z}timer/Kconfig: fix compatibility modules
This commit is contained in:
parent
73fc2c215a
commit
3837286750
@ -7,7 +7,7 @@
|
||||
|
||||
menuconfig MODULE_XTIMER
|
||||
bool "xtimer"
|
||||
depends on HAS_PERIPH_TIMER || MODULE_XTIMER_ON_ZTIMER || MODULE_ZTIMER_XTIMER_COMPAT
|
||||
depends on HAS_PERIPH_TIMER
|
||||
depends on TEST_KCONFIG
|
||||
|
||||
# use timer peripheral unless ztimer compatibility module is used
|
||||
|
@ -132,15 +132,16 @@ menu "xtimer and evtimer compatibility"
|
||||
|
||||
choice
|
||||
bool "xtimer compatibility"
|
||||
optional
|
||||
depends on MODULE_ZTIMER_USEC
|
||||
depends on MODULE_XTIMER
|
||||
|
||||
config MODULE_XTIMER_ON_ZTIMER
|
||||
bool "ztimer_usec as timer backend for xtimer"
|
||||
select MODULE_ZTIMER_USEC
|
||||
|
||||
config MODULE_ZTIMER_XTIMER_COMPAT
|
||||
bool "map xtimer calls to ztimer"
|
||||
select MODULE_DIV
|
||||
select MODULE_ZTIMER_USEC
|
||||
help
|
||||
This is a wrapper of xtimer API on ztimer_usec and is currently
|
||||
incomplete. Unless doing testing, use xtimer on ztimer.
|
||||
|
Loading…
Reference in New Issue
Block a user