2019-11-01 13:45:29 +01:00
|
|
|
# STM32 IWDG configuration
|
|
|
|
|
2016-03-16 12:54:03 +01:00
|
|
|
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
2017-06-21 10:36:18 +02:00
|
|
|
# Copyright (c) 2017 RnDity Sp. z o.o.
|
2019-07-15 16:07:00 +03:00
|
|
|
# Copyright (c) 2019 Centaur Analytics, Inc
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-16 12:54:03 +01:00
|
|
|
|
2021-01-27 11:27:58 +01:00
|
|
|
config IWDG_STM32
|
2016-03-16 12:54:03 +01:00
|
|
|
bool "Independent Watchdog (IWDG) Driver for STM32 family of MCUs"
|
2022-07-21 16:24:59 -05:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ST_STM32_WATCHDOG_ENABLED
|
2016-03-16 12:54:03 +01:00
|
|
|
help
|
2016-11-29 11:13:49 +00:00
|
|
|
Enable IWDG driver for STM32 line of MCUs
|
2016-03-16 12:54:03 +01:00
|
|
|
|
2020-11-27 11:03:10 +01:00
|
|
|
config IWDG_STM32_INITIAL_TIMEOUT
|
|
|
|
int "Value for IWDG timeout in ms"
|
2017-06-21 10:36:18 +02:00
|
|
|
depends on IWDG_STM32
|
|
|
|
default 100
|
2020-11-27 11:03:10 +01:00
|
|
|
range 1 26214
|
|
|
|
help
|
|
|
|
Set initial timeout value for IWDG in ms if enabled at boot.
|
|
|
|
|
|
|
|
The min timeout supported is 1 ms. The max timeout depends on the
|
|
|
|
MCU's LSI clock frequency and can be calculated with:
|
|
|
|
|
|
|
|
max. prescaler value (256) * max. reload ticks (4096) / LSI freq.
|
|
|
|
|
|
|
|
Limiting maximum timeout to a safe value of 26214 ms here, which was
|
|
|
|
calculated for highest LSI frequency among STM32 MCUs of 40 kHz.
|
2019-07-15 16:07:00 +03:00
|
|
|
|
|
|
|
config WWDG_STM32
|
|
|
|
bool "System Window Watchdog (WWDG) Driver for STM32 family of MCUs"
|
2022-07-21 16:24:59 -05:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ST_STM32_WINDOW_WATCHDOG_ENABLED
|
2019-07-15 16:07:00 +03:00
|
|
|
help
|
|
|
|
Enable WWDG driver for STM32 line of MCUs
|