Skip to content

Commit 43b63b1

Browse files
lucbeaufilskartben
authored andcommitted
drivers: wdt_wwdg_stm32: freeze watchdog in debug mode for mp2x SoCs
Like the H7x series, the MP2x series has a WWDG1 peripheral in the APB3 bus. The MP2 has the same LL function to freeze the watchdog in debug mode. Signed-off-by: Luc BEAUFILS <[email protected]>
1 parent d3d334c commit 43b63b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/watchdog/wdt_wwdg_stm32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ static int wwdg_stm32_setup(const struct device *dev, uint8_t options)
173173
#elif defined(CONFIG_SOC_SERIES_STM32C0X) || defined(CONFIG_SOC_SERIES_STM32G0X)
174174
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_DBGMCU);
175175
#endif
176-
#if defined(CONFIG_SOC_SERIES_STM32H7X)
176+
177+
#if defined(CONFIG_SOC_SERIES_STM32H7X) || defined(CONFIG_SOC_SERIES_STM32MP2X)
177178
LL_DBGMCU_APB3_GRP1_FreezePeriph(LL_DBGMCU_APB3_GRP1_WWDG1_STOP);
178179
#elif defined(CONFIG_SOC_SERIES_STM32MP1X)
179180
LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_WWDG1_STOP);

0 commit comments

Comments
 (0)