mirror of https://github.com/ARMmbed/mbed-os.git
STM32 WATCHDOG : update STM32L0 HAL_IWDG_Init to a newest version
parent
e29d64fc19
commit
feec85cc37
|
@ -197,7 +197,7 @@ HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
|
||||||
/* Check pending flag, if previous update not done, return timeout */
|
/* Check pending flag, if previous update not done, return timeout */
|
||||||
tickstart = HAL_GetTick();
|
tickstart = HAL_GetTick();
|
||||||
|
|
||||||
/* Wait for register to be updated */
|
/* Wait for register to be updated */
|
||||||
while(hiwdg->Instance->SR != RESET)
|
while(hiwdg->Instance->SR != RESET)
|
||||||
{
|
{
|
||||||
if((HAL_GetTick() - tickstart ) > HAL_IWDG_DEFAULT_TIMEOUT)
|
if((HAL_GetTick() - tickstart ) > HAL_IWDG_DEFAULT_TIMEOUT)
|
||||||
|
|
Loading…
Reference in New Issue