All RTC interrupts are connected to the EXTI controller.
To enable the RTC Alarm interrupt, the following sequence is required:
Configure and enable the EXTI Line 17 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
Configure and enable the RTC_Alarm IRQ channel in the NVIC using the
NVIC_Init() function.
Configure the RTC to generate RTC alarms (Alarm A and/or Alarm B) using the
RTC_SetAlarm() and RTC_AlarmCmd() functions.
To enable the RTC Wakeup interrupt, the following sequence is required:
Configure and enable the EXTI Line 20 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
Configure and enable the RTC_WKUP IRQ channel in the NVIC using the
NVIC_Init() function.
Configure the RTC to generate the RTC wakeup timer event using the
RTC_WakeUpClockConfig(), RTC_SetWakeUpCounter() and
RTC_WakeUpCmd() functions.
To enable the RTC Tamper interrupt, the following sequence is required:
Configure and enable the EXTI Line 19 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the
NVIC_Init() function.
Configure the RTC to detect the RTC tamper event using the
RTC_TamperTriggerConfig() and RTC_TamperCmd() functions.
To enable the RTC TimeStamp interrupt, the following sequence is required:
Configure and enable the EXTI Line 19 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the
NVIC_Init() function.
Configure the RTC to detect the RTC time-stamp event using the
RTC_TimeStampCmd() functions.
RTC_ITConfig()
RTC_GetFlagStatus()
RTC_ClearFlag()
RTC_GetITStatus()
RTC_ClearITPendingBit()
19.2.12 Time and Date configuration functions
This section provide functions allowing to program and read the RTC Calendar (Time and
Date).
RTC_SetTime()
RTC_TimeStructInit()
RTC_GetTime()
RTC_GetSubSecond()
RTC_SetDate()
RTC_DateStructInit()
RTC_GetDate()
19.2.13 Alarms (Alarm A and Alarm B) configuration functions
This section provides functions allowing to program and read the RTC Alarms.