mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-27 12:18:26 +08:00
15 lines
209 B
C
15 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();
|
||
|
}
|