2020-08-19 21:19:51 +02:00
|
|
|
# Include this for boards whose timer periph cannot generate a clock frequency
|
|
|
|
# suitable for xtimer with the available clock sources and dividers.
|
|
|
|
# This will use ztimer to perform the required frequency conversion.
|
2022-03-16 09:34:25 +01:00
|
|
|
# By default, ztimer_xtimer_compat is used unless xtimer_on_ztimer is
|
|
|
|
# selected.
|
2020-08-19 21:19:51 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter xtimer,$(USEMODULE)))
|
2022-03-16 09:34:25 +01:00
|
|
|
ifeq (,$(filter xtimer_on_ztimer,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_xtimer_compat
|
2020-08-19 21:19:51 +02:00
|
|
|
endif
|
|
|
|
endif
|