litex/software/memtest/isr.c
Sebastien Bourdeauducq 379a48bb31 software: add memtest
2013-07-11 19:03:45 +02:00

14 lines
202 B
C

#include <hw/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();
}