interrupt.c 344 B

12345678910111213141516
  1. #include "include.h"
  2. AT(.com_text.timer)
  3. void timer1_isr(void)
  4. {
  5. if (TMR1CON & BIT(9)) {
  6. TMR1CPND = BIT(9); //Clear Pending
  7. TMR1CON = 0;
  8. #if (GUI_SELECT == GUI_LEDSEG_7P7S)
  9. ledseg_7p7s_clr(); //close display
  10. #elif (GUI_SELECT == GUI_LEDSEG_6C6S)
  11. ledseg_6c6s_clr();
  12. #endif
  13. }
  14. }