Merge pull request #4485 from mysterywolf/wdgl0
[bug][stm32][wdg] 修复没有考虑到L0芯片的问题
This commit is contained in:
commit
f4f6bf5237
|
@ -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_STM32H7) || defined(SOC_SERIES_STM32L0)
|
||||||
stm32_wdt.hiwdg.Init.Window = 0x00000FFF;
|
stm32_wdt.hiwdg.Init.Window = 0x00000FFF;
|
||||||
#endif
|
#endif
|
||||||
stm32_wdt.is_start = 0;
|
stm32_wdt.is_start = 0;
|
||||||
|
|
Loading…
Reference in New Issue