mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:32:44 +01:00
drivers/wdt: Expose configuration to Kconfig
This commit is contained in:
parent
00b71a2708
commit
8cca9bfc28
@ -6,4 +6,5 @@
|
||||
|
||||
menu "Drivers"
|
||||
rsource "Kconfig.net"
|
||||
rsource "periph_common/Kconfig"
|
||||
endmenu # Drivers
|
||||
|
26
drivers/periph_common/Kconfig
Normal file
26
drivers/periph_common/Kconfig
Normal file
@ -0,0 +1,26 @@
|
||||
# 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 KCONFIG_MODULE_PERIPH_WDT
|
||||
bool "Configure Watchdog peripheral"
|
||||
depends on MODULE_PERIPH_WDT
|
||||
help
|
||||
Configure Watchdog peripheral using Kconfig.
|
||||
|
||||
if KCONFIG_MODULE_PERIPH_WDT
|
||||
|
||||
config WDT_WARNING_PERIOD
|
||||
int "Warning period (in ms)"
|
||||
depends on HAS_WDT_WARNING_PERIOD
|
||||
help
|
||||
Period in ms before reboot where wdt_cb() is executed.
|
||||
|
||||
endif # KCONFIG_MODULE_PERIPH_WDT
|
||||
|
||||
config HAS_WDT_WARNING_PERIOD
|
||||
bool
|
||||
help
|
||||
Indicates that a CPU provides a warning period configuration option.
|
Loading…
Reference in New Issue
Block a user