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

s3c2440头文件之2440addr.h

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

// WATCH DOG TIMER
#define rWTCON (*(volatile unsigned *)0x53000000)//Watch-dog timer mode
#define rWTDAT (*(volatile unsigned *)0x53000004)//Watch-dog timer data
#define rWTCNT (*(volatile unsigned *)0x53000008)//Eatch-dog timer count

// IIC
#define rIICCON(*(volatile unsigned *)0x54000000)//IIC control
#define rIICSTAT(*(volatile unsigned *)0x54000004)//IIC status
#define rIICADD(*(volatile unsigned *)0x54000008)//IIC address
#define rIICDS(*(volatile unsigned *)0x5400000c)//IIC data shift
#define rIICLC(*(volatile unsigned *)0x54000010)//IIC multi-master line control

// IIS
#define rIISCON (*(volatile unsigned *)0x55000000)//IIS Control
#define rIISMOD (*(volatile unsigned *)0x55000004)//IIS Mode
#define rIISPSR (*(volatile unsigned *)0x55000008)//IIS Prescaler
#define rIISFCON (*(volatile unsigned *)0x5500000c)//IIS FIFO control
#ifdef __BIG_ENDIAN
#define IISFIFO ((volatile unsigned short *)0x55000012)//IIS FIFO entry
#else //Little Endian
#define IISFIFO ((volatile unsigned short *)0x55000010)//IIS FIFO entry
#endif

//AC97, Added for S3C2440A
#define rAC_GLBCTRL*(volatile unsigned *)0x5b000000
#define rAC_GLBSTAT*(volatile unsigned *)0x5b000004
#define rAC_CODEC_CMD*(volatile unsigned *)0x5b000008
#define rAC_CODEC_STAT*(volatile unsigned *)0x5b00000C
#define rAC_PCMADDR*(volatile unsigned *)0x5b000010
#define rAC_MICADDR*(volatile unsigned *)0x5b000014
#define rAC_PCMDATA*(volatile unsigned *)0x5b000018
#define rAC_MICDATA*(volatile unsigned *)0x5b00001C

#define AC_PCMDATA0x5b000018
#define AC_MICDATA0x5b00001C

// I/O PORT
#define rGPACON (*(volatile unsigned *)0x56000000)//Port A control
#define rGPADAT (*(volatile unsigned *)0x56000004)//Port A data

#define rGPBCON (*(volatile unsigned *)0x56000010)//Port B control
#define rGPBDAT (*(volatile unsigned *)0x56000014)//Port B data
#define rGPBUP (*(volatile unsigned *)0x56000018)//Pull-up control B

#define rGPCCON (*(volatile unsigned *)0x56000020)//Port C control
#define rGPCDAT (*(volatile unsigned *)0x56000024)//Port C data
#define rGPCUP (*(volatile unsigned *)0x56000028)//Pull-up control C

#define rGPDCON (*(volatile unsigned *)0x56000030)//Port D control
#define rGPDDAT (*(volatile unsigned *)0x56000034)//Port D data
#define rGPDUP (*(volatile unsigned *)0x56000038)//Pull-up control D

#define rGPECON (*(volatile unsigned *)0x56000040)//Port E control
#define rGPEDAT (*(volatile unsigned *)0x56000044)//Port E data
#define rGPEUP (*(volatile unsigned *)0x56000048)//Pull-up control E

#define rGPFCON (*(volatile unsigned *)0x56000050)//Port F control
#define rGPFDAT (*(volatile unsigned *)0x56000054)//Port F data
#define rGPFUP (*(volatile unsigned *)0x56000058)//Pull-up control F

#define rGPGCON (*(volatile unsigned *)0x56000060)//Port G control
#define rGPGDAT (*(volatile unsigned *)0x56000064)//Port G data
#define rGPGUP (*(volatile unsigned *)0x56000068)//Pull-up control G

#define rGPHCON (*(volatile unsigned *)0x56000070)//Port H control
#define rGPHDAT (*(volatile unsigned *)0x56000074)//Port H data
#define rGPHUP (*(volatile unsigned *)0x56000078)//Pull-up control H

#define rGPJCON (*(volatile unsigned *)0x560000d0)//Port J control
#define rGPJDAT (*(volatile unsigned *)0x560000d4)//Port J data
#define rGPJUP (*(volatile unsigned *)0x560000d8)//Pull-up control J

#define rMISCCR (*(volatile unsigned *)0x56000080)//Miscellaneous control
#define rDCLKCON (*(volatile unsigned *)0x56000084)//DCLK0/1 control
#define rEXTINT0 (*(volatile unsigned *)0x56000088)//External interrupt control register 0
#define rEXTINT1 (*(volatile unsigned *)0x5600008c)//External interrupt control register 1
#define rEXTINT2 (*(volatile unsigned *)0x56000090)//External interrupt control register 2
#define rEINTFLT0 (*(volatile unsigned *)0x56000094)//Reserved
#define rEINTFLT1 (*(volatile unsigned *)0x56000098)//Reserved
#define rEINTFLT2 (*(volatile unsigned *)0x5600009c)//External interrupt filter control register 2
#define rEINTFLT3 (*(volatile unsigned *)0x560000a0)//External interrupt filter control register 3
#define rEINTMASK (*(volatile unsigned *)0x560000a4)//External interrupt mask
#define rEINTPEND (*(volatile unsigned *)0x560000a8)//External interrupt pending
#define rGSTATUS0 (*(volatile unsigned *)0x560000ac)//External pin status
#define rGSTATUS1 (*(volatile unsigned *)0x560000b0)//Chip ID(0x32440000)
#define rGSTATUS2 (*(volatile unsigned *)0x560000b4)//Reset type
#define rGSTATUS3 (*(volatile unsigned *)0x560000b8)//Saved data0(32-bit) before entering POWER_OFF mode
#define rGSTATUS4 (*(volatile unsigned *)0x560000bc)//Saved data0(32-bit) before entering POWER_OFF mode

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

网站地图

Top