litex/misoc/software/bios/isr.c

15 lines
209 B
C
Raw Normal View History

#include <generated/csr.h>
2012-02-05 14:01:28 -05:00
#include <irq.h>
#include <uart.h>
2012-02-05 14:01:28 -05:00
2012-02-07 07:02:06 -05:00
void isr(void);
2012-02-05 14:01:28 -05:00
void isr(void)
{
unsigned int irqs;
2012-02-05 14:01:28 -05:00
irqs = irq_pending() & irq_getmask();
2012-05-21 13:52:41 -04:00
if(irqs & (1 << UART_INTERRUPT))
uart_isr();
2012-02-05 14:01:28 -05:00
}