mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/xtimer: move dependencies to xtimer/Makefile.dep
This commit is contained in:
parent
be6a76a3c0
commit
7227d1bb77
@ -857,20 +857,7 @@ endif
|
||||
|
||||
# handle xtimer's deps. Needs to be done *after* ztimer
|
||||
ifneq (,$(filter xtimer,$(USEMODULE)))
|
||||
ifeq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
||||
# xtimer is used, ztimer xtimer wrapper is not
|
||||
DEFAULT_MODULE += auto_init_xtimer
|
||||
USEMODULE += div
|
||||
ifeq (,$(filter xtimer_on_ztimer,$(USEMODULE)))
|
||||
# ztimer is not used, so use *periph_timer as low-level timer*.
|
||||
FEATURES_REQUIRED += periph_timer
|
||||
else
|
||||
# will use *ztimer_usec as low-level timer*
|
||||
endif
|
||||
else
|
||||
# ztimer_xtimer_compat is used, all of *xtimer's API will be mapped on ztimer
|
||||
# or ztimer64 *
|
||||
endif
|
||||
include $(RIOTBASE)/sys/xtimer/Makefile.dep
|
||||
endif
|
||||
|
||||
ifneq (,$(filter devfs_hwrng,$(USEMODULE)))
|
||||
|
14
sys/xtimer/Makefile.dep
Normal file
14
sys/xtimer/Makefile.dep
Normal file
@ -0,0 +1,14 @@
|
||||
ifeq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
||||
# xtimer is used, ztimer xtimer wrapper is not
|
||||
DEFAULT_MODULE += auto_init_xtimer
|
||||
USEMODULE += div
|
||||
ifeq (,$(filter xtimer_on_ztimer,$(USEMODULE)))
|
||||
# ztimer is not used, so use *periph_timer as low-level timer*.
|
||||
FEATURES_REQUIRED += periph_timer
|
||||
else
|
||||
# will use *ztimer_usec as low-level timer*
|
||||
endif
|
||||
else
|
||||
# ztimer_xtimer_compat is used, all of *xtimer's API will be mapped on ztimer
|
||||
# or ztimer64 *
|
||||
endif
|
Loading…
Reference in New Issue
Block a user