Skip to content

Commit 4195836

Browse files
ycsincfriedt
authored andcommitted
drivers: watchdog: STM32G0X: clock DBGMCU before configuring
Enable the clock for the DBGMCU peripherals so that it can be configured. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
1 parent dddb9f1 commit 4195836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/watchdog/wdt_iwdg_stm32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ static int iwdg_stm32_setup(const struct device *dev, uint8_t options)
8383
if (options & WDT_OPT_PAUSE_HALTED_BY_DBG) {
8484
#if defined(CONFIG_SOC_SERIES_STM32F0X)
8585
LL_APB1_GRP2_EnableClock(LL_APB1_GRP2_PERIPH_DBGMCU);
86+
#elif defined(CONFIG_SOC_SERIES_STM32G0X)
87+
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_DBGMCU);
8688
#elif defined(CONFIG_SOC_SERIES_STM32L0X)
8789
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_DBGMCU);
8890
#endif

0 commit comments

Comments
 (0)