STM32 WATCHDOG : update STM32L0 HAL_IWDG_Init to a newest version

pull/10657/head
jeromecoutant 2018-03-27 19:42:12 +02:00 committed by Filip Jagodzinski
parent e29d64fc19
commit feec85cc37
1 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
/* Check pending flag, if previous update not done, return timeout */
tickstart = HAL_GetTick();
/* Wait for register to be updated */
/* Wait for register to be updated */
while(hiwdg->Instance->SR != RESET)
{
if((HAL_GetTick() - tickstart ) > HAL_IWDG_DEFAULT_TIMEOUT)