diff options
Diffstat (limited to 'firmware/src/os/system_irq.h')
-rw-r--r-- | firmware/src/os/system_irq.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/src/os/system_irq.h b/firmware/src/os/system_irq.h new file mode 100644 index 0000000..195b7b9 --- /dev/null +++ b/firmware/src/os/system_irq.h @@ -0,0 +1,22 @@ +#ifndef _SYSTEM_IRQ_H +#define _SYSTEM_IRQ_H + +#include <sys/types.h> + +enum sysirqs { + AT91SAM7_SYSIRQ_PIT = 0, + AT91SAM7_SYSIRQ_DBGU = 1, + AT91SAM7_SYSIRQ_EFC = 2, + AT91SAM7_SYSIRQ_WDT = 3, + AT91SAM7_SYSIRQ_RTT = 4, + AT91SAM7_SYSIRQ_RSTC = 5, + AT91SAM7_SYSIRQ_PMC = 6, + AT91SAM7_SYSIRQ_COUNT +}; + +typedef void sysirq_hdlr(u_int32_t sr); + +extern void sysirq_register(enum sysirqs irq, sysirq_hdlr *hdlr); +extern void sysirq_init(void); + +#endif |