微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > S3C2440启动代码 中断分析

S3C2440启动代码 中断分析

时间:11-22 来源:互联网 点击:

ADDRESS+0x44)) //Changedto pISR_WDT_AC97 for 2440A

#define pISR_TIMER0 (*(unsigned*)(_ISR_STARTADDRESS+0x48))

#define pISR_TIMER1 (*(unsigned*)(_ISR_STARTADDRESS+0x4c))

#define pISR_TIMER2 (*(unsigned *)(_ISR_STARTADDRESS+0x50))

#define pISR_TIMER3 (*(unsigned *)(_ISR_STARTADDRESS+0x54))

#define pISR_TIMER4 (*(unsigned *)(_ISR_STARTADDRESS+0x58))

#define pISR_UART2 (*(unsigned *)(_ISR_STARTADDRESS+0x5c))

#define pISR_LCD (*(unsigned *)(_ISR_STARTADDRESS+0x60))

#define pISR_DMA0 (*(unsigned *)(_ISR_STARTADDRESS+0x64))

#define pISR_DMA1 (*(unsigned *)(_ISR_STARTADDRESS+0x68))

#define pISR_DMA2 (*(unsigned *)(_ISR_STARTADDRESS+0x6c))

#define pISR_DMA3 (*(unsigned *)(_ISR_STARTADDRESS+0x70))

#define pISR_SDI (*(unsigned *)(_ISR_STARTADDRESS+0x74))

#define pISR_SPI0 (*(unsigned *)(_ISR_STARTADDRESS+0x78))

#define pISR_UART1 (*(unsigned *)(_ISR_STARTADDRESS+0x7c))

#define pISR_NFCON (*(unsigned *)(_ISR_STARTADDRESS+0x80)) // Added for 2440.

#define pISR_USBD (*(unsigned *)(_ISR_STARTADDRESS+0x84))

#define pISR_USBH (*(unsigned *)(_ISR_STARTADDRESS+0x88))

#define pISR_IIC (*(unsigned *)(_ISR_STARTADDRESS+0x8c))

#define pISR_UART0 (*(unsigned *)(_ISR_STARTADDRESS+0x90))

#define pISR_SPI1 (*(unsigned *)(_ISR_STARTADDRESS+0x94))

#define pISR_RTC (*(unsigned *)(_ISR_STARTADDRESS+0x98))

#define pISR_ADC (*(unsigned *)(_ISR_STARTADDRESS+0x9c))

8.一个中断实例

Main()

{

KeyScan_Test;

}

void KeyScan_Test(void)

{

pISR_EINT0 =pISR_EINT2 = pISR_EINT8_23 = (U32)Key_ISR;

}

static void __irq Key_ISR(void)

{

}

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top