litex/misoc/software/bios/isr.c
Sebastien Bourdeauducq e92d00f767 move software into misoc
2015-09-28 15:30:19 +08:00

14 lines
209 B
C

#include <generated/csr.h>
#include <irq.h>
#include <uart.h>
void isr(void);
void isr(void)
{
unsigned int irqs;
irqs = irq_pending() & irq_getmask();
if(irqs & (1 << UART_INTERRUPT))
uart_isr();
}