1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/kconfigs/Kconfig.ztimer_only
Leandro Lanzieri 538327805b
sys/{x,z}timer: add file to use ztimer when xtimer is present
This introduces a Kconfig file for boards that cannot reach a timer frequency
compatible with xtimer. For those boards, in the case xtimer is pulled,
ztimer is used instead (as backend) with a compatibility module.
2021-11-22 12:25:30 +01:00

15 lines
618 B
Plaintext

# 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.
config HAVE_ZTIMER_ONLY
bool
default y
select MODULE_ZTIMER if MODULE_XTIMER
select MODULE_ZTIMER_USEC if MODULE_XTIMER
help
Indicates that the board cannot generate a clock frequency suitable for
xtimer and requires ztimer for conversion. ztimer is used as backend.