1
0
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:
Leandro Lanzieri 2020-02-13 18:19:56 +01:00
parent 00b71a2708
commit 8cca9bfc28
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
2 changed files with 27 additions and 0 deletions

View File

@ -6,4 +6,5 @@
menu "Drivers"
rsource "Kconfig.net"
rsource "periph_common/Kconfig"
endmenu # Drivers

View 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.