19.2.23 Shift control synchronisation functions
19.2.23.1 RTC_SynchroShiftConfig
ErrorStatus RTC_SynchroShiftConfig ( uint32_t
RTC_ShiftAdd1S, uint32_t RTC_ShiftSubFS)
Configures the Synchronization Shift Control Settings.
ï‚· 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.
ï‚· An ErrorStatus enumeration value:
ï€ SUCCESS: RTC Shift registers are configured
ï€ ERROR: RTC Shift registers are not configured
ï‚· 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
void RTC_ITConfig ( uint32_t RTC_IT, FunctionalState
NewState)
Enables or disables the specified RTC interrupts.
ï‚· 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.