arch/arm/src/stm32/stm32_rtcc.c
/************************************************************************************
 * Name: rtc_resume
 *
 * Description:
 *   Called when the RTC was already initialized on a previous power cycle.  This
 *   just brings the RTC back into full operation.
 *
 * Input Parameters:
 *   None
 *
 * Returned Value:
 *   Zero (OK) on success; a negated errno on failure
 *
 ************************************************************************************/
rtc_resume
Description:
Called when the RTC was already initialized on a previous power cycle.  This
just brings the RTC back into full operation.

Input Parameters:
None

Returned Value:
Zero (OK) on success; a negated errno on failure
rtc_resume Description : Called when the RTC was already initialized on a previous power cycle . This just brings the RTC back into full operation . Input Parameters : None Returned Value : Zero ( OK ) on success ; a negated errno on failure
static void rtc_resume(void)
{
#ifdef CONFIG_RTC_ALARM
  uint32_t regval;
  regval  = getreg32(STM32_RTC_ISR);
  regval &= ~(RTC_ISR_ALRAF|RTC_ISR_ALRBF);
  putreg32(regval, STM32_RTC_ISR);
  putreg32((1 << 17), STM32_EXTI_PR);
#endif
}
static void rtc_resume ( void ) { #ifdef CONFIG_RTC_ALARM uint32_t regval ; regval = getreg32 ( STM32_RTC_ISR ) ; regval &= ~ ( RTC_ISR_ALRAF | RTC_ISR_ALRBF ) ; putreg32 ( regval , STM32_RTC_ISR ) ; putreg32 ( ( 1 << 17 ) , STM32_EXTI_PR ) ; #endif }
Name: rtc_resume
 Description:
   Called when the RTC was already initialized on a previous power cycle.
Name : rtc_resume Description : Called when the RTC was already initialized on a previous power cycle .
/* Clear the RTC alarm flags */ /* Clear the EXTI Line 17 Pending bit (Connected internally to RTC Alarm) */