zephyr/drivers/watchdog/Kconfig.stm32
Andrzej Głąbek 7abb9d7593 drivers: watchdog: Allow WDT_DISABLE_AT_BOOT only when supported
Introduce a hidden Kconfig option named HAS_WDT_DISABLE_AT_BOOT and
allow users to enable WDT_DISABLE_AT_BOOT only when that hidden option
is selected by a watchdog driver, i.e. disabling at boot is supported.
Select this new hidden option for all existing watchdog drivers that
refer to WDT_DISABLE_AT_BOOT.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2024-05-27 08:40:16 -07:00

38 lines
1.1 KiB
Plaintext

# STM32 IWDG configuration
# Copyright (c) 2016 Open-RnD Sp. z o.o.
# Copyright (c) 2017 RnDity Sp. z o.o.
# Copyright (c) 2019 Centaur Analytics, Inc
# SPDX-License-Identifier: Apache-2.0
config IWDG_STM32
bool "Independent Watchdog (IWDG) Driver for STM32 family of MCUs"
default y
depends on DT_HAS_ST_STM32_WATCHDOG_ENABLED
select HAS_WDT_DISABLE_AT_BOOT
help
Enable IWDG driver for STM32 line of MCUs
config IWDG_STM32_INITIAL_TIMEOUT
int "Value for IWDG timeout in ms"
depends on IWDG_STM32
default 100
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.
config WWDG_STM32
bool "System Window Watchdog (WWDG) Driver for STM32 family of MCUs"
default y
depends on DT_HAS_ST_STM32_WINDOW_WATCHDOG_ENABLED
help
Enable WWDG driver for STM32 line of MCUs