-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Kconfig.timer
46 lines (35 loc) · 1.3 KB
/
Kconfig.timer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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 "Configure 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