2009-04-21 00:38:45 +02:00
|
|
|
#ifndef ISR_H
|
|
|
|
#define ISR_H
|
|
|
|
|
|
|
|
#include "embedded_types.h"
|
|
|
|
|
|
|
|
#define INTBASE (0x80020000)
|
|
|
|
#define INTENNUM_OFF (0x8)
|
2009-05-12 23:19:57 +02:00
|
|
|
#define INTDISNUM_OFF (0xc)
|
2009-04-21 00:38:45 +02:00
|
|
|
#define INTSRC_OFF (0x30)
|
|
|
|
|
|
|
|
#define INTENNUM INTBASE + INTENNUM_OFF
|
2009-05-12 23:19:57 +02:00
|
|
|
#define INTDISNUM INTBASE + INTDISNUM_OFF
|
2009-04-21 00:38:45 +02:00
|
|
|
#define INTSRC INTBASE + INTSRC_OFF
|
|
|
|
|
2009-04-22 20:55:40 +02:00
|
|
|
#define enable_tmr_irq() *(volatile uint32_t *)(INTENNUM) = 5;
|
2009-04-21 00:38:45 +02:00
|
|
|
|
2009-04-24 22:04:04 +02:00
|
|
|
extern void tmr_isr(void) __attribute__((weak));
|
2009-04-21 00:38:45 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|