Ll_Rtc_Enterinitmode; Ll_Rtc_Exitinitmode; Ll_Rtc_Waitforsynchro; Rtc Firmware Driver Defines - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940

LL_RTC_EnterInitMode

Function name
Function description
Parameters
Return values
Notes

LL_RTC_ExitInitMode

Function name
Function description
Parameters
Return values
Notes

LL_RTC_WaitForSynchro

Function name
Function description
Parameters
Return values
Notes
64.3

RTC Firmware driver defines

64.3.1
RTC
ALARM OUTPUT
ErrorStatus LL_RTC_EnterInitMode (RTC_TypeDef * RTCx)
Enters the RTC Initialization mode.
RTCx: RTC Instance
An: ErrorStatus enumeration value:
SUCCESS: RTC is in Init mode
ERROR: RTC is not in Init mode
The RTC Initialization mode is write protected, use the
LL_RTC_DisableWriteProtection before calling this function.
ErrorStatus LL_RTC_ExitInitMode (RTC_TypeDef * RTCx)
Exit the RTC Initialization mode.
RTCx: RTC Instance
An: ErrorStatus enumeration value:
SUCCESS: RTC exited from in Init mode
ERROR: Not applicable
When the initialization sequence is complete, the calendar
restarts counting after 4 RTCCLK cycles.
The RTC Initialization mode is write protected, use the
LL_RTC_DisableWriteProtection before calling this function.
ErrorStatus LL_RTC_WaitForSynchro (RTC_TypeDef * RTCx)
Waits until the RTC Time and Day registers (RTC_TR and
RTC_DR) are synchronized with RTC APB clock.
RTCx: RTC Instance
An: ErrorStatus enumeration value:
SUCCESS: RTC registers are synchronised
ERROR: RTC registers are not synchronised
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.
DocID028236 Rev 2
LL RTC Generic Driver
1117/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Table of Contents

Save PDF