Merge pull request #5251 from charlown/master

[bsp/stm32/libraries/HAL_Drivers/drv_wdt.c]: add SOC_SERIES_STM32G0 to fix wdt always reset.
This commit is contained in:
guo 2021-11-03 19:05:12 +08:00 committed by GitHub
commit 4fe6c709d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ int rt_wdt_init(void)
stm32_wdt.hiwdg.Init.Reload = 0x00000FFF; stm32_wdt.hiwdg.Init.Reload = 0x00000FFF;
#if defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32L4) || defined(SOC_SERIES_STM32F7) \ #if defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32L4) || defined(SOC_SERIES_STM32F7) \
|| defined(SOC_SERIES_STM32H7) || defined(SOC_SERIES_STM32L0) || defined(SOC_SERIES_STM32H7) || defined(SOC_SERIES_STM32L0) || defined(SOC_SERIES_STM32G0)
stm32_wdt.hiwdg.Init.Window = 0x00000FFF; stm32_wdt.hiwdg.Init.Window = 0x00000FFF;
#endif #endif
stm32_wdt.is_start = 0; stm32_wdt.is_start = 0;