renamed libmc1322x to lib

This commit is contained in:
Mariano Alvira 2010-03-02 09:51:58 -05:00
parent 4a42f24be5
commit d5b20ddce5
17 changed files with 2 additions and 2 deletions

18
lib/include/isr.h Normal file
View 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