2020-04-20 14:45:40 +02:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig MODULE_XTIMER
|
|
|
|
bool "xtimer"
|
2021-11-08 10:51:38 +01:00
|
|
|
depends on HAS_PERIPH_TIMER
|
2022-03-16 08:57:56 +01:00
|
|
|
select MODULE_PERIPH_TIMER
|
2020-04-20 14:45:40 +02:00
|
|
|
select MODULE_DIV if !MODULE_ZTIMER_XTIMER_COMPAT
|
2022-03-16 08:57:56 +01:00
|
|
|
select ZTIMER_USEC if !MODULE_XTIMER_NO_ZTIMER_DEFAULT
|
2020-04-20 14:45:40 +02:00
|
|
|
help
|
|
|
|
Include xtimer module. xtimer requires a low-level timer implementation
|
|
|
|
that can be provided either by a peripheral timer or the ztimer module
|
|
|
|
when MODULE_XTIMER_ON_ZTIMER is enabled.
|
|
|
|
|
2022-03-16 08:57:56 +01:00
|
|
|
if MODULE_XTIMER
|
|
|
|
|
|
|
|
config MODULE_XTIMER_NO_ZTIMER_DEFAULT
|
|
|
|
bool "xtimer does not select ztimer"
|
|
|
|
|
2020-04-20 14:45:40 +02:00
|
|
|
config MODULE_AUTO_INIT_XTIMER
|
|
|
|
bool "Auto-init xtimer"
|
2021-01-07 13:21:59 +01:00
|
|
|
default y if MODULE_AUTO_INIT && !MODULE_ZTIMER_XTIMER_COMPAT
|
2022-03-16 08:57:56 +01:00
|
|
|
|
|
|
|
endif # MODULE_XTIMER
|