drivers: watchdog: stm32G0 window watchdog during debug
This commit is enabling the Debug support clock like the stm32L0 or F0, the APB peripheral clock enable register 1 has a bit to clock DBGMCU before use. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
4145c83c82
commit
701d6bd087
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,8 @@ static int wwdg_stm32_setup(const struct device *dev, uint8_t options)
|
|||
LL_APB1_GRP2_EnableClock(LL_APB1_GRP2_PERIPH_DBGMCU);
|
||||
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
|
||||
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_DBGMCU);
|
||||
#elif defined(CONFIG_SOC_SERIES_STM32G0X)
|
||||
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_DBGMCU);
|
||||
#endif
|
||||
#if defined(CONFIG_SOC_SERIES_STM32H7X)
|
||||
LL_DBGMCU_APB3_GRP1_FreezePeriph(LL_DBGMCU_APB3_GRP1_WWDG1_STOP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue