mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-26 19:29:24 +00:00
19 lines
384 B
C
19 lines
384 B
C
#ifndef ISR_H
|
|
#define ISR_H
|
|
|
|
#define INTBASE (0x80020000)
|
|
#define INTENNUM_OFF (0x8)
|
|
#define INTDISNUM_OFF (0xc)
|
|
#define INTSRC_OFF (0x30)
|
|
|
|
#define INTENNUM INTBASE + INTENNUM_OFF
|
|
#define INTDISNUM INTBASE + INTDISNUM_OFF
|
|
#define INTSRC INTBASE + INTSRC_OFF
|
|
|
|
#define enable_tmr_irq() *(volatile uint32_t *)(INTENNUM) = 5;
|
|
|
|
extern void tmr_isr(void) __attribute__((weak));
|
|
|
|
#endif
|
|
|