Skip to content

Commit 2c12fe7

Browse files
lucbeaufilsTanguy Raufflet
authored andcommitted
drivers: watchdog: 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 <luc.beaufils@savoirfairelinux.com>
1 parent d7e3e08 commit 2c12fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/wdt_wwdg_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ 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+
#if defined(CONFIG_SOC_SERIES_STM32H7X) || defined(CONFIG_SOC_SERIES_STM32MP2X)
177177
LL_DBGMCU_APB3_GRP1_FreezePeriph(LL_DBGMCU_APB3_GRP1_WWDG1_STOP);
178178
#elif defined(CONFIG_SOC_SERIES_STM32MP1X)
179179
LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_WWDG1_STOP);

0 commit comments

Comments
 (0)