18 lines
343 B
C
18 lines
343 B
C
#ifndef ISR_H
|
|
#define ISR_H
|
|
|
|
#include "embedded_types.h"
|
|
|
|
#define INTBASE (0x80020000)
|
|
#define INTENNUM_OFF (0x8)
|
|
#define INTSRC_OFF (0x30)
|
|
|
|
#define INTENNUM INTBASE + INTENNUM_OFF
|
|
#define INTSRC INTBASE + INTSRC_OFF
|
|
|
|
#define enable_tmr_irq() *(volatile uint32_t *)(INTENNUM) = 5;
|
|
|
|
extern void tmr_isr(void) __attribute__((weak));
|
|
|
|
#endif
|
|
|