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:
parent
2681b6c282
commit
20e68fbb68
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user