Пример #1
0
void RTC_WKUP_IRQHandler(void) {
	if (RTC_GetITStatus(RTC_IT_WUT) != RESET) {
		/* Clear interrupt flags */
		RTC_ClearITPendingBit(RTC_IT_WUT);
		EXTI_ClearITPendingBit(EXTI_Line22);
		
		/* Call user function */
		TM_RTC_RequestHandler();
	}
}
Пример #2
0
// Private RTC IRQ handlers
//----------------------------
void RTC_WKUP_IRQHandler(void) {
  /* Check for RTC interrupt */
  if (RTC_GetITStatus(RTC_IT_WUT) != RESET) {
    /* Clear interrupt flags */
    RTC_ClearITPendingBit(RTC_IT_WUT);
    /* Call user function */
    TM_RTC_RequestHandler();
  }
  /* Clear EXTI line 22 bit */
  EXTI->PR = 0x00400000;
}