www.pudn.com > S3C2440_uCos-II.rar > 24x0Int.h
//==================================================================== // IRQ中断注册 管理 //==================================================================== #ifndef __2410INT_H__ #define __2410INT_H__ void IRQ_FIQ_PABT_Def(void); //中断 初始化 void IRQ_Init(void); //开关 子中断 void IRQ_SUB_Enable(unsigned int ID_SUB); void IRQ_SUB_Disable(unsigned int ID_SUB); //开关 中断 void IRQ_Enable(unsigned int ID); void IRQ_Disable(unsigned int ID); //IRQ 中断向量注册 void IRQ_Vector(unsigned int ID,unsigned int pVector); // PENDING BIT #define ID_EINT0 (0) #define ID_EINT1 (1) #define ID_EINT2 (2) #define ID_EINT3 (3) #define ID_EINT4_7 (4) #define ID_EINT8_23 (5) #define ID_NOTUSED6 (6) #define ID_BAT_FLT (7) #define ID_TICK (8) #define ID_WDT (9) #define ID_TIMER0 (10) #define ID_TIMER1 (11) #define ID_TIMER2 (12) #define ID_TIMER3 (13) #define ID_TIMER4 (14) #define ID_UART2 (15) #define ID_LCD (16) #define ID_DMA0 (17) #define ID_DMA1 (18) #define ID_DMA2 (19) #define ID_DMA3 (20) #define ID_SDI (21) #define ID_SPI0 (22) #define ID_UART1 (23) #define ID_NOTUSED24 (24) #define ID_USBD (25) #define ID_USBH (26) #define ID_IIC (27) #define ID_UART0 (28) #define ID_SPI1 (29) #define ID_RTC (30) #define ID_ADC (31) #define ID_SUB_ADC (10) #define ID_SUB_TC (9) #define ID_SUB_ERR2 (8) #define ID_SUB_TXD2 (7) #define ID_SUB_RXD2 (6) #define ID_SUB_ERR1 (5) #define ID_SUB_TXD1 (4) #define ID_SUB_RXD1 (3) #define ID_SUB_ERR0 (2) #define ID_SUB_TXD0 (1) #define ID_SUB_RXD0 (0) #endif