1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/periph_common/Kconfig.timer
2022-03-20 21:35:16 +01:00

47 lines
1.3 KiB
SYSTEMD

# 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.
if TEST_KCONFIG
menuconfig MODULE_PERIPH_TIMER
bool "Timer peripheral driver"
depends on HAS_PERIPH_TIMER
select MODULE_PERIPH_COMMON
if MODULE_PERIPH_TIMER
# TODO: the 'init' modules are actually just artifacts from the way
# periph_init_% modules are handled in Makefile. We need to define them to keep
# the list the same for now. We should be able to remove them later on.
config MODULE_PERIPH_INIT_TIMER
bool "Auto initialize Timer peripheral"
default y if MODULE_PERIPH_INIT
config MODULE_PERIPH_TIMER_PERIODIC
bool "Periodic timeout support"
depends on HAS_PERIPH_TIMER_PERIODIC
config MODULE_PERIPH_INIT_TIMER_PERIODIC
bool
depends on MODULE_PERIPH_TIMER_PERIODIC
default y if MODULE_PERIPH_INIT
endif # MODULE_PERIPH_TIMER
endif # TEST_KCONFIG
menuconfig KCONFIG_USEMODULE_PERIPH_TIMER
bool "Configure timer peripheral driver"
depends on USEMODULE_PERIPH_TIMER
help
Configure Timer peripheral using Kconfig.
# Include CPU specific configurations
if KCONFIG_USEMODULE_PERIPH_TIMER
osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.timer"
endif