s3c2440头文件之2440addr.h
// PENDING BIT
#define BIT_EINT0(0x1)
#define BIT_EINT1(0x1<1)
#define BIT_EINT2(0x1<2)
#define BIT_EINT3(0x1<3)
#define BIT_EINT4_7(0x1<4)
#define BIT_EINT8_23(0x1<5)
#define BIT_CAM(0x1<6)// Added for 2440.
#define BIT_BAT_FLT(0x1<7)
#define BIT_TICK(0x1<8)
#define BIT_WDT_AC97(0x1<9)// Changed from BIT_WDT to BIT_WDT_AC97 for 2440A
#define BIT_TIMER0(0x1<10)
#define BIT_TIMER1(0x1<11)
#define BIT_TIMER2(0x1<12)
#define BIT_TIMER3(0x1<13)
#define BIT_TIMER4(0x1<14)
#define BIT_UART2(0x1<15)
#define BIT_LCD(0x1<16)
#define BIT_DMA0(0x1<17)
#define BIT_DMA1(0x1<18)
#define BIT_DMA2(0x1<19)
#define BIT_DMA3(0x1<20)
#define BIT_SDI(0x1<21)
#define BIT_SPI0(0x1<22)
#define BIT_UART1(0x1<23)
#define BIT_NFCON(0x1<24)// Added for 2440.
#define BIT_USBD(0x1<25)
#define BIT_USBH(0x1<26)
#define BIT_IIC(0x1<27)
#define BIT_UART0(0x1<28)
#define BIT_SPI1(0x1<29)
#define BIT_RTC(0x1<30)
#define BIT_ADC(0x1<31)
#define BIT_ALLMSK(0xffffffff)
#define BIT_SUB_ALLMSK(0x7fff)//Changed from 0x7ff to 0x7fff for 2440A
#define BIT_SUB_AC97(0x1<14)//Added for 2440A
#define BIT_SUB_WDT(0x1<13)//Added for 2440A
#define BIT_SUB_CAM_P(0x1<12)// edited for 2440A.
#define BIT_SUB_CAM_C (0x1<11) // edited for 2440A
#define BIT_SUB_ADC(0x1<10)
#define BIT_SUB_TC(0x1<9)
#define BIT_SUB_ERR2(0x1<8)
#define BIT_SUB_TXD2(0x1<7)
#define BIT_SUB_RXD2(0x1<6)
#define BIT_SUB_ERR1(0x1<5)
#define BIT_SUB_TXD1(0x1<4)
#define BIT_SUB_RXD1(0x1<3)
#define BIT_SUB_ERR0(0x1<2)
#define BIT_SUB_TXD0(0x1<1)
#define BIT_SUB_RXD0(0x1<0)
#defineClearPending(bit) {\
rSRCPND = bit;\
rINTPND = bit;\
rINTPND;\
}
//Wait until rINTPND is changed for the case that the ISR is very short.
#ifdef __cplusplus
}
#endif
#endif //__2440ADDR_H__
s3c2440头文件2440addr 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)