1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:29:45 +01:00

sys/xtimer: switch default backend to ztimer

With this commit xtimer will always be implemented with ztimer.
The default compat layer will be ztimer_xtimer_compat, so xtimer
calls will be inlined to ZTIMER_USEC, or ZTIMER64_USEC when the
64bit xtimer API is required.

This can be reverted by adding 'xtimer_no_ztimer_default' module
to a build.
This commit is contained in:
Francisco Molina 2022-03-17 08:45:37 +01:00
parent 2681b6c282
commit 20e68fbb68
2 changed files with 0 additions and 2 deletions

View File

@ -20,7 +20,6 @@ if MODULE_XTIMER
config MODULE_XTIMER_NO_ZTIMER_DEFAULT
bool "xtimer does not select ztimer"
default y
config MODULE_AUTO_INIT_XTIMER
bool "Auto-init xtimer"

View File

@ -7,7 +7,6 @@ DEFAULT_MODULE += auto_init_xtimer
# dependency inclusion order issues
FEATURES_REQUIRED += periph_timer
USEMODULE += xtimer_no_ztimer_default
ifeq (,$(filter xtimer_no_ztimer_default,$(USEMODULE)))
ifeq (,$(filter xtimer_on_ztimer,$(USEMODULE)))
USEMODULE += ztimer_xtimer_compat