void RTC_IRQHandler() { if(RTC_GetITStatus(RTC_IT_SEC)!=RESET) //是否秒中断发生 { printf("Time is =%d rn",RTC_GetCounter()); //输出此时的秒数 } RTC_WaitForLastTask(); RTC_ClearITPendingBit(RTC_IT_SEC|RTC_IT_OW); //清除秒中断标志位和溢出位 } 1. 2. 3. 4. 5. 6. 7. 8....