1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/xtimer: Add module to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-04-20 14:45:40 +02:00
parent a7ef35d318
commit 4bb0edbbfc
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 24 additions and 0 deletions

View File

@ -15,6 +15,7 @@ rsource "Kconfig.stdio"
rsource "pm_layered/Kconfig"
rsource "test_utils/Kconfig"
rsource "usb/Kconfig"
rsource "xtimer/Kconfig"
config MODULE_SYS
bool

23
sys/xtimer/Kconfig Normal file
View File

@ -0,0 +1,23 @@
# 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"
select MODULE_PERIPH_TIMER if HAS_PERIPH_TIMER && !MODULE_XTIMER_ON_ZTIMER
depends on HAS_PERIPH_TIMER && !MODULE_XTIMER_ON_ZTIMER || MODULE_XTIMER_ON_ZTIMER
depends on TEST_KCONFIG
select MODULE_DIV if !MODULE_ZTIMER_XTIMER_COMPAT
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.
config MODULE_AUTO_INIT_XTIMER
bool "Auto-init xtimer"
default y if MODULE_AUTO_INIT
depends on !MODULE_ZTIMER_XTIMER_COMPAT
depends on MODULE_XTIMER