微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > s3c2440头文件之2440addr.h

s3c2440头文件之2440addr.h

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

#define rSPCON1 (*(volatile unsigned *)0x59000020)//SPI1 control
#define rSPSTA1 (*(volatile unsigned *)0x59000024)//SPI1 status
#define rSPPIN1 (*(volatile unsigned *)0x59000028)//SPI1 pin control
#define rSPPRE1 (*(volatile unsigned *)0x5900002c)//SPI1 baud rate prescaler
#define rSPTDAT1 (*(volatile unsigned *)0x59000030)//SPI1 Tx data
#define rSPRDAT1 (*(volatile unsigned *)0x59000034)//SPI1 Rx data

// SD Interface
#define rSDICON (*(volatile unsigned *)0x5a000000)//SDI control
#define rSDIPRE (*(volatile unsigned *)0x5a000004)//SDI baud rate prescaler
#define rSDICARG (*(volatile unsigned *)0x5a000008)//SDI command argument
#define rSDICCON (*(volatile unsigned *)0x5a00000c)//SDI command control
#define rSDICSTA (*(volatile unsigned *)0x5a000010)//SDI command status
#define rSDIRSP0 (*(volatile unsigned *)0x5a000014)//SDI response 0
#define rSDIRSP1 (*(volatile unsigned *)0x5a000018)//SDI response 1
#define rSDIRSP2 (*(volatile unsigned *)0x5a00001c)//SDI response 2
#define rSDIRSP3 (*(volatile unsigned *)0x5a000020)//SDI response 3
#define rSDIDTIMER (*(volatile unsigned *)0x5a000024)//SDI data/busy timer
#define rSDIBSIZE (*(volatile unsigned *)0x5a000028)//SDI block size
#define rSDIDCON (*(volatile unsigned *)0x5a00002c)//SDI data control
#define rSDIDCNT (*(volatile unsigned *)0x5a000030)//SDI data remain counter
#define rSDIDSTA (*(volatile unsigned *)0x5a000034)//SDI data status
#define rSDIFSTA (*(volatile unsigned *)0x5a000038)//SDI FIFO status
#define rSDIIMSK (*(volatile unsigned *)0x5a00003c)//SDI interrupt mask. edited for 2440A

#ifdef __BIG_ENDIAN /* edited for 2440A */
#define rSDIDAT (*(volatile unsigned *)0x5a00004c)//SDI data
#define SDIDAT 0x5a00004c
#else // Little Endian
#define rSDIDAT (*(volatile unsigned *)0x5a000040)//SDI data
#define SDIDAT 0x5a000040
#endif //SD Interface

// Exception vector
#define pISR_RESET(*(unsigned *)(_ISR_STARTADDRESS+0x0))
#define pISR_UNDEF(*(unsigned *)(_ISR_STARTADDRESS+0x4))
#define pISR_SWI(*(unsigned *)(_ISR_STARTADDRESS+0x8))
#define pISR_PABORT(*(unsigned *)(_ISR_STARTADDRESS+0xc))
#define pISR_DABORT(*(unsigned *)(_ISR_STARTADDRESS+0x10))
#define pISR_RESERVED(*(unsigned *)(_ISR_STARTADDRESS+0x14))
#define pISR_IRQ(*(unsigned *)(_ISR_STARTADDRESS+0x18))
#define pISR_FIQ(*(unsigned *)(_ISR_STARTADDRESS+0x1c))
// Interrupt vector
#define pISR_EINT0(*(unsigned *)(_ISR_STARTADDRESS+0x20))
#define pISR_EINT1(*(unsigned *)(_ISR_STARTADDRESS+0x24))
#define pISR_EINT2(*(unsigned *)(_ISR_STARTADDRESS+0x28))
#define pISR_EINT3(*(unsigned *)(_ISR_STARTADDRESS+0x2c))
#define pISR_EINT4_7(*(unsigned *)(_ISR_STARTADDRESS+0x30))
#define pISR_EINT8_23(*(unsigned *)(_ISR_STARTADDRESS+0x34))
#define pISR_CAM(*(unsigned *)(_ISR_STARTADDRESS+0x38))// Added for 2440.
#define pISR_BAT_FLT(*(unsigned *)(_ISR_STARTADDRESS+0x3c))
#define pISR_TICK(*(unsigned *)(_ISR_STARTADDRESS+0x40))
#define pISR_WDT_AC97(*(unsigned *)(_ISR_STARTADDRESS+0x44)) //Changed to 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))

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

网站地图

Top