Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. /* Set RTC prescaler: set RTC period to 1sec */
  2. RTC_SetPrescaler(32768);
  3.  
  4. /* Wait until last write operation on RTC registers has finished */
  5. RTC_WaitForLastTask();
  6. }
  7.  
  8.  
  9. void RTC_IRQHandler(void)
  10. {
  11. if (RTC_GetITStatus(RTC_IT_SEC) != RESET)
  12. {
  13. /* Clear the RTC Second interrupt */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement