From 20e68fbb683cae512165c38800e7eb7e3a7e3a1c Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 17 Mar 2022 08:45:37 +0100 Subject: [PATCH] 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. --- sys/xtimer/Kconfig | 1 - sys/xtimer/Makefile.dep | 1 - 2 files changed, 2 deletions(-) diff --git a/sys/xtimer/Kconfig b/sys/xtimer/Kconfig index b4de1eb6e5..ea4c879a0d 100644 --- a/sys/xtimer/Kconfig +++ b/sys/xtimer/Kconfig @@ -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" diff --git a/sys/xtimer/Makefile.dep b/sys/xtimer/Makefile.dep index 4d141a49aa..ae685c3ced 100644 --- a/sys/xtimer/Makefile.dep +++ b/sys/xtimer/Makefile.dep @@ -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