mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d5c0e30a11
- Set XTIMER_HZ to something that is actually possible to generate with one of the available clock dividers from the core frequency - Use xtimer_on_ztimer if xtimer is used and not ztimer_xtimer_compat is used - This is needed because xtimer is simply not compatible with any of the possible clock frequencies of this board
12 lines
456 B
Makefile
12 lines
456 B
Makefile
# 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.
|
|
# By default, xtimer is still used with ztimer as backed, unless
|
|
# ztimer_xtimer_compat is used.
|
|
|
|
ifneq (,$(filter xtimer,$(USEMODULE)))
|
|
ifeq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
|
|
USEMODULE += xtimer_on_ztimer
|
|
endif
|
|
endif
|