2020-07-27 17:09:27 +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.
|
2020-08-31 12:53:01 +02:00
|
|
|
|
|
|
|
if TEST_KCONFIG
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
menuconfig MODULE_PERIPH_TIMER
|
2022-03-20 20:56:50 +01:00
|
|
|
bool "Timer peripheral driver"
|
2020-07-27 17:09:27 +02:00
|
|
|
depends on HAS_PERIPH_TIMER
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
if MODULE_PERIPH_TIMER
|
2020-07-27 17:09:27 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_TIMER
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize Timer peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_TIMER_PERIODIC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Periodic timeout support"
|
|
|
|
depends on HAS_PERIPH_TIMER_PERIODIC
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_TIMER_PERIODIC
|
2020-07-27 17:09:27 +02:00
|
|
|
bool
|
2020-08-31 09:57:28 +02:00
|
|
|
depends on MODULE_PERIPH_TIMER_PERIODIC
|
|
|
|
default y if MODULE_PERIPH_INIT
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2021-04-19 21:42:26 +02:00
|
|
|
config MODULE_PERIPH_TIMER_QUERY_FREQS
|
|
|
|
bool "Support for querying supported timer frequencies"
|
|
|
|
depends on HAS_PERIPH_TIMER_QUERY_FREQS
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
endif # MODULE_PERIPH_TIMER
|
2020-08-31 12:53:01 +02:00
|
|
|
|
|
|
|
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
|