2016-03-16 19:54:03 +08:00
|
|
|
# Kconfig - STM32 IWDG configuration
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
2017-06-21 16:36:18 +08:00
|
|
|
# Copyright (c) 2017 RnDity Sp. z o.o.
|
2016-03-16 19:54:03 +08:00
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-16 19:54:03 +08:00
|
|
|
#
|
|
|
|
|
2017-06-21 16:36:18 +08:00
|
|
|
menuconfig IWDG_STM32
|
2016-03-16 19:54:03 +08:00
|
|
|
bool "Independent Watchdog (IWDG) Driver for STM32 family of MCUs"
|
2017-06-21 16:36:18 +08:00
|
|
|
depends on SOC_FAMILY_STM32
|
2016-03-16 19:54:03 +08:00
|
|
|
help
|
2016-11-29 19:13:49 +08:00
|
|
|
Enable IWDG driver for STM32 line of MCUs
|
2016-03-16 19:54:03 +08:00
|
|
|
|
|
|
|
config IWDG_STM32_START_AT_BOOT
|
|
|
|
bool "Start IWDG during boot"
|
|
|
|
depends on IWDG_STM32
|
2017-06-21 16:36:18 +08:00
|
|
|
default y
|
2016-03-16 19:54:03 +08:00
|
|
|
help
|
2016-11-29 19:13:49 +08:00
|
|
|
Enable this setting to allow IWDG to be automatically started
|
|
|
|
during device initialization. Note that once IWDG is started
|
|
|
|
it must be reloaded before the counter reaches 0, otherwise
|
|
|
|
the MCU will be reset.
|
2016-03-16 19:54:03 +08:00
|
|
|
|
|
|
|
config IWDG_STM32_DEVICE_NAME
|
|
|
|
string "Device name for Independent Watchdog (IWDG)"
|
|
|
|
depends on IWDG_STM32
|
|
|
|
default "IWDG"
|
|
|
|
help
|
2016-11-29 19:13:49 +08:00
|
|
|
Set the name used by IWDG device during registration.
|
2016-03-16 19:54:03 +08:00
|
|
|
|
2017-06-21 16:36:18 +08:00
|
|
|
config IWDG_STM32_TIMEOUT
|
|
|
|
int "Value for IWDG timeout in [us]"
|
|
|
|
depends on IWDG_STM32
|
|
|
|
default 100
|
|
|
|
range 100 26214400
|
|
|
|
help
|
|
|
|
Set timeout value for IWDG in microseconds.
|
|
|
|
The min timeout supported is 0.1ms, the max timeout is 26214.4ms.
|