forked from M-Labs/artiq
1
0
Fork 0
artiq/soc/runtime/isr.c

15 lines
230 B
C
Raw Normal View History

#include <generated/csr.h>
#include <irq.h>
#include <uart.h>
void isr(void);
void isr(void)
{
2014-09-05 12:03:22 +08:00
unsigned int irqs;
irqs = irq_pending() & irq_getmask();
if(irqs & (1 << UART_INTERRUPT))
uart_isr();
}