mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ztimer: pull in xtimer_on_ztimer only if ztimer_usec is used
This commit is contained in:
parent
8ffd34ddd0
commit
bb0f7e5014
@ -23,11 +23,11 @@ ifneq (,$(filter ztimer,$(USEMODULE)))
|
||||
endif
|
||||
endif
|
||||
|
||||
# unless ztimer_xtimer_compat is used, make xtimer use ztimer as backend.
|
||||
ifneq (,$(filter ztimer,$(USEMODULE)))
|
||||
# unless ztimer_xtimer_compat is used, make xtimer use ztimer_usec as backend.
|
||||
ifneq (,$(filter ztimer_periph_timer,$(USEMODULE)))
|
||||
ifneq (,$(filter xtimer,$(USEMODULE)))
|
||||
ifeq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
||||
USEMODULE += xtimer_on_ztimer
|
||||
USEMODULE += xtimer_on_ztimer
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user