starting libmc1322x.a
This commit is contained in:
parent
e340e234c6
commit
8c17fc36d1
8 changed files with 55 additions and 4 deletions
18
libmc1322x/include/isr.h
Normal file
18
libmc1322x/include/isr.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue