mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3740 from jeromecoutant/PR_L4_RTC
STM32L4 HAL update for RTC Wake Up Timerpull/3798/head
commit
99dda9a60b
|
@ -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);
|
__HAL_RTC_WAKEUPTIMER_DISABLE(hrtc);
|
||||||
|
|
||||||
|
/* Clear flag Wake-Up */
|
||||||
|
__HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(hrtc, RTC_FLAG_WUTF);
|
||||||
|
|
||||||
tickstart = HAL_GetTick();
|
tickstart = HAL_GetTick();
|
||||||
|
|
||||||
/* Wait till RTC WUTWF flag is set and if Time out is reached exit */
|
/* Wait till RTC WUTWF flag is set and if Time out is reached exit */
|
||||||
|
|
Loading…
Reference in New Issue