drivers: watchdog stm32 independent wdg when enable at boot

When the CONFIG_WDT_DISABLE_AT_BOOT is not set, the iwdg
should be configured by iwdg_stm32_install_timeout
and started by iwdg_stm32_setup

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-04-23 14:07:05 +02:00 committed by Anas Nashif
parent 183edd2549
commit f9d04d0958

View file

@ -190,8 +190,9 @@ static int iwdg_stm32_init(const struct device *dev)
struct wdt_timeout_cfg config = {
.window.max = CONFIG_IWDG_STM32_INITIAL_TIMEOUT
};
/* Watchdog should be configured and started by `wdt_setup`*/
iwdg_stm32_install_timeout(dev, &config);
iwdg_stm32_setup(dev, 0); /* no option specified */
#endif
/*