Merge pull request #3740 from jeromecoutant/PR_L4_RTC

STM32L4 HAL update for RTC Wake Up Timer
pull/3798/head
Sam Grove 2017-02-17 09:12:01 -06:00 committed by GitHub
commit 99dda9a60b
1 changed files with 4 additions and 1 deletions

View File

@ -1123,9 +1123,12 @@ HAL_StatusTypeDef HAL_RTCEx_SetWakeUpTimer_IT(RTC_HandleTypeDef *hrtc, uint32_t
}
}
}
/* Disable the Wake-Up timer */
__HAL_RTC_WAKEUPTIMER_DISABLE(hrtc);
/* Clear flag Wake-Up */
__HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(hrtc, RTC_FLAG_WUTF);
tickstart = HAL_GetTick();
/* Wait till RTC WUTWF flag is set and if Time out is reached exit */