HAL
LL_RTC_WaitForSynchro() is only used within HAL.
 
Symbols
loading...
Files
loading...

LL_RTC_WaitForSynchro() function

Waits until the RTC Time and Day registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock.

Syntax

ErrorStatus LL_RTC_WaitForSynchro(RTC_TypeDef *RTCx);
Implemented in stm32f4xx_ll_rtc.c:790

Arguments

RTCx

RTC Instance

Return value

An ErrorStatus enumeration value: - SUCCESS: RTC registers are synchronised - ERROR: RTC registers are not synchronised

Notes

The RTC Resynchronization mode is write protected, use the LL_RTC_DisableWriteProtection before calling this function. To read the calendar through the shadow registers after calendar initialization, calendar update or after wakeup from low power modes the software must first clear the RSF flag. The software must then wait until it is set again before reading the calendar, which means that the calendar registers have been correctly copied into the RTC_TR and RTC_DR shadow registers.

References

LocationReferrerText
stm32f4xx_ll_rtc.c:790
ErrorStatus LL_RTC_WaitForSynchro(RTC_TypeDef *RTCx)
stm32f4xx_ll_rtc.h:3638
ErrorStatus LL_RTC_WaitForSynchro(RTC_TypeDef *RTCx);
stm32f4xx_ll_rtc.c:171LL_RTC_DeInit()
status = LL_RTC_WaitForSynchro(RTCx);
stm32f4xx_ll_rtc.c:315LL_RTC_TIME_Init()
status = LL_RTC_WaitForSynchro(RTCx);
stm32f4xx_ll_rtc.c:403LL_RTC_DATE_Init()
status = LL_RTC_WaitForSynchro(RTCx);

Call Tree

Functions calling LL_RTC_WaitForSynchro()
Functions called by LL_RTC_WaitForSynchro()
LL_RTC_WaitForSynchro()
Data read by LL_RTC_WaitForSynchro()
Data written by LL_RTC_WaitForSynchro()
LL_RTC_WaitForSynchro()::timeout
LL_RTC_WaitForSynchro()::status
LL_RTC_WaitForSynchro()::tmp
all items filtered out
LL_RTC_WaitForSynchro()
LL_RTC_WaitForSynchro()::timeout
LL_RTC_WaitForSynchro()::status
LL_RTC_WaitForSynchro()::tmp
all items filtered out
Type of LL_RTC_WaitForSynchro()
LL_RTC_WaitForSynchro()
uint32_t
all items filtered out