drivers: watchdog: iwdg_stm32: Add support for STM32H7xx SoC

Add the IWDG driver support for STM32H7xx SoC.

Signed-off-by: Harry Jiang <explora26@gmail.com>
This commit is contained in:
Harry Jiang 2021-01-27 13:49:58 +08:00 committed by Maureen Helm
commit 5adaba0760

View file

@ -86,7 +86,11 @@ static int iwdg_stm32_setup(const struct device *dev, uint8_t options)
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_DBGMCU);
#endif
#if defined(CONFIG_SOC_SERIES_STM32H7X)
LL_DBGMCU_APB4_GRP1_FreezePeriph(LL_DBGMCU_APB4_GRP1_IWDG1_STOP);
#else
LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_IWDG_STOP);
#endif
}
if (options & WDT_OPT_PAUSE_IN_SLEEP) {