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.