renamed libmc1322x to lib
This commit is contained in:
parent
4a42f24be5
commit
d5b20ddce5
17 changed files with 2 additions and 2 deletions
18
lib/include/isr.h
Normal file
18
lib/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