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:
parent
f8251f3bde
commit
5adaba0760
1 changed files with 4 additions and 0 deletions
|
@ -86,7 +86,11 @@ static int iwdg_stm32_setup(const struct device *dev, uint8_t options)
|
||||||
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
|
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
|
||||||
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_DBGMCU);
|
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_DBGMCU);
|
||||||
#endif
|
#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);
|
LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_IWDG_STOP);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options & WDT_OPT_PAUSE_IN_SLEEP) {
|
if (options & WDT_OPT_PAUSE_IN_SLEEP) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue