1
0
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:
Leandro Lanzieri 2021-11-08 10:51:38 +01:00
parent 73fc2c215a
commit 3837286750
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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.