EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Real-time clock (RTC)
UM1581
370/584
DocID023800 Rev 1
19.2.23 Shift control synchronisation functions
19.2.23.1 RTC_SynchroShiftConfig
Function Name
ErrorStatus RTC_SynchroShiftConfig ( uint32_t
RTC_ShiftAdd1S, uint32_t RTC_ShiftSubFS)
Function Description
Configures the Synchronization Shift Control Settings.
Parameters
RTC_ShiftAdd1S : : Select to add or not 1 second to the
time Calendar. This parameter can be one of the following
values :
RTC_ShiftAdd1S_Set : Add one second to the clock
calendar.
RTC_ShiftAdd1S_Reset : No effect.
RTC_ShiftSubFS : Select the number of Second Fractions
to Substitute. This parameter can be one any value from 0 to
0x7FFF.
Return values
An ErrorStatus enumeration value:
SUCCESS: RTC Shift registers are configured
ERROR: RTC Shift registers are not configured
Notes
When REFCKON is set, firmware must not write to Shift
control register
19.2.24 Interrupts and flags management functions
19.2.24.1 RTC_ITConfig
Function Name
void RTC_ITConfig ( uint32_t RTC_IT, FunctionalState
NewState)
Function Description
Enables or disables the specified RTC interrupts.
Parameters
RTC_IT : specifies the RTC interrupt sources to be enabled
or disabled. This parameter can be any combination of the
following values:
RTC_IT_TS : Time Stamp interrupt mask
RTC_IT_WUT : WakeUp Timer interrupt mask
RTC_IT_ALRB : Alarm B interrupt mask
RTC_IT_ALRA : Alarm A interrupt mask
RTC_IT_TAMP : Tamper event interrupt mask
NewState : new state of the specified RTC interrupts. This
parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
None.

Table of Contents

Related product manuals