mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
0b1453667e
This adds a xtimer_no_ztimer_default that is currently always selected in Makefile, but that can be switched off in Kconfig. Removing its inclusion will allow switching the default xtimer backend to ztimer, while allowing for an easy way back.
22 lines
581 B
Makefile
22 lines
581 B
Makefile
# This files contains dependencies for default modules. They are parsed at the
|
|
# end of the dependency loop. They MAY inlcude new modules, but this modules
|
|
# MUST NOT have dependencies themselfs.
|
|
|
|
ifneq (,$(filter auto_init_ztimer,$(USEMODULE)))
|
|
USEMODULE += ztimer_init
|
|
endif
|
|
|
|
ifneq (,$(filter ztimer_auto_adjust,$(USEMODULE)))
|
|
USEMODULE += ztimer_overhead
|
|
endif
|
|
|
|
ifneq (,$(filter auto_init_saul,$(USEMODULE)))
|
|
USEMODULE += saul_init_devs
|
|
endif
|
|
|
|
ifneq (,$(filter xtimer,$(USEMODULE)))
|
|
ifeq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
USEMODULE += div
|
|
endif
|
|
endif
|