Guest User

Untitled

a guest
Jul 16th, 2023
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. void isr(void)
  2. {
  3.     __attribute__((unused)) unsigned int irqs;
  4.  
  5.     irqs = irq_pending() & irq_getmask();
  6. #ifdef CSR_UART_BASE
  7. #ifndef UART_POLLING
  8.     if(irqs & (1 << UART_INTERRUPT))
  9.         uart_isr();
  10.     else
  11.         printf("irq: %i\n", irqs);
  12. #endif
  13. #endif
  14. }
Advertisement
Add Comment
Please, Sign In to add comment