📄 24a0addr.h
字号:
//===================================================================
// NAME : 24A0addr.h
// DESC : S3C24A0 Define Register address
// History : 2003.12.26 ver 0.0 Baik Seung Woo
//===================================================================
#ifndef __24A0ADDR_H__
#define __24A0ADDR_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "option.h"
//CLOCK GENERATOR & POWER MANAGEMENT
#define rLOCKTIME (*(volatile unsigned *)0x40000000)
#define rXTALWSET (*(volatile unsigned *)0x40000004)
#define rMPLLCON (*(volatile unsigned *)0x40000010)
#define rUPLLCON (*(volatile unsigned *)0x40000014)
#define rCLKCON (*(volatile unsigned *)0x40000020)
#define rCLKSRC (*(volatile unsigned *)0x40000024)
#define rCLKDIVN (*(volatile unsigned *)0x40000028)
#define rPWRMAN (*(volatile unsigned *)0x40000030)
#define rSOFTRESET (*(volatile unsigned *)0x40000038)
//NAND FLASH CONTROLLER
#define rNFCONF (*(volatile unsigned *)0x40C00000)
#define rNFCONT (*(volatile unsigned *)0x40C00004)
#define rNFCMMD (*(volatile unsigned *)0x40C00008)
#define rNFADDR (*(volatile unsigned *)0x40C0000C)
#define rNFDATA (*(volatile unsigned *)0x40C00010)
#define rNFMECCDATA0 (*(volatile unsigned *)0x40C00014)
#define rNFMECCDATA1 (*(volatile unsigned *)0x40C00018)
#define rNFMECCDATA2 (*(volatile unsigned *)0x40C0001C)
#define rNFMECCDATA3 (*(volatile unsigned *)0x40C00020)
#define rNFSECCDATA0 (*(volatile unsigned *)0x40C00024)
#define rNFSECCDATA1 (*(volatile unsigned *)0x40C00028)
#define rNFSTAT (*(volatile unsigned *)0x40C0002C)
#define rNFESTAT0 (*(volatile unsigned *)0x40C00030)
#define rNFESTAT1 (*(volatile unsigned *)0x40C00034)
#define rNFMECC0 (*(volatile unsigned *)0x40C00038)
#define rNFMECC1 (*(volatile unsigned *)0x40C0003C)
#define rNFSECC (*(volatile unsigned *)0x40C00040)
#define rNFSBLK (*(volatile unsigned *)0x40C00044)
#define rNFEBLK (*(volatile unsigned *)0x40C00048)
//SROM CONTROLLER
#define rSROM_BW (*(volatile unsigned *)0x40C20000)
#define rSROM_BC0 (*(volatile unsigned *)0x40C20004)
#define rSROM_BC1 (*(volatile unsigned *)0x40C20008)
#define rSROM_BC2 (*(volatile unsigned *)0x40C2000C)
//SDRAM CONTROLLER
#define rSDRAM_BANKCFG (*(volatile unsigned *)0x40C40000)
#define rSDRAM_BANKCON (*(volatile unsigned *)0x40C40004)
#define rSDRAM_REFRESH (*(volatile unsigned *)0x40C40008)
//BUS MATRIX
#define rPRIORITY0 (*(volatile unsigned *)0x40CE0000)
#define rPRIORITY1 (*(volatile unsigned *)0x40CE0004)
//INTERRUPT CONTROLLER
#define rSRCPND (*(volatile unsigned *)0x40200000)
#define rINTMOD (*(volatile unsigned *)0x40200004)
#define rINTMSK (*(volatile unsigned *)0x40200008)
#define rPRIORITY (*(volatile unsigned *)0x4020000C)
#define rINTPND (*(volatile unsigned *)0x40200010)
#define rINTOFFSET (*(volatile unsigned *)0x40200014)
#define rSUBSRCPND (*(volatile unsigned *)0x40200018)
#define rINTSUBMSK (*(volatile unsigned *)0x4020001C)
#define rVECINTMOD (*(volatile unsigned *)0x40200020)
#define rVECADDR (*(volatile unsigned *)0x40200024)
#define rNVECADDR (*(volatile unsigned *)0x40200028)
#define rVAR (*(volatile unsigned *)0x4020002C)
//TIMER WITH PWM
#define rTCFG0 (*(volatile unsigned *)0x44000000)
#define rTCFG1 (*(volatile unsigned *)0x44000004)
#define rTCON (*(volatile unsigned *)0x44000008)
#define rTCNTB0 (*(volatile unsigned *)0x4400000C)
#define rTCMPB0 (*(volatile unsigned *)0x44000010)
#define rTCNTO0 (*(volatile unsigned *)0x44000014)
#define rTCNTB1 (*(volatile unsigned *)0x44000018)
#define rTCMPB1 (*(volatile unsigned *)0x4400001C)
#define rTCNTO1 (*(volatile unsigned *)0x44000020)
#define rTCNTB2 (*(volatile unsigned *)0x44000024)
#define rTCMPB2 (*(volatile unsigned *)0x44000028)
#define rTCNTO2 (*(volatile unsigned *)0x4400002C)
#define rTCNTB3 (*(volatile unsigned *)0x44000030)
#define rTCMPB3 (*(volatile unsigned *)0x44000034)
#define rTCNTO3 (*(volatile unsigned *)0x44000038)
#define rTCNTB4 (*(volatile unsigned *)0x4400003C)
#define rTCNTO4 (*(volatile unsigned *)0x44000040)
//WATCH DOG TIMER
#define rWTCON (*(volatile unsigned *)0x44100000)
#define rWTDAT (*(volatile unsigned *)0x44100004)
#define rWTCNT (*(volatile unsigned *)0x44100008)
//DMA
#define rDISRC0 (*(volatile unsigned *)0x40400000)
#define rDISRCC0 (*(volatile unsigned *)0x40400004)
#define rDIDST0 (*(volatile unsigned *)0x40400008)
#define rDIDSTC0 (*(volatile unsigned *)0x4040000C)
#define rDCON0 (*(volatile unsigned *)0x40400010)
#define rDSTAT0 (*(volatile unsigned *)0x40400014)
#define rDCSRC0 (*(volatile unsigned *)0x40400018)
#define rDCDST0 (*(volatile unsigned *)0x4040001C)
#define rDMASKTRIG0 (*(volatile unsigned *)0x40400020)
#define rDISRC1 (*(volatile unsigned *)0x40500000)
#define rDISRCC1 (*(volatile unsigned *)0x40500004)
#define rDIDST1 (*(volatile unsigned *)0x40500008)
#define rDIDSTC1 (*(volatile unsigned *)0x4050000C)
#define rDCON1 (*(volatile unsigned *)0x40500010)
#define rDSTAT1 (*(volatile unsigned *)0x40500014)
#define rDCSRC1 (*(volatile unsigned *)0x40500018)
#define rDCDST1 (*(volatile unsigned *)0x4050001C)
#define rDMASKTRIG1 (*(volatile unsigned *)0x40500020)
#define rDISRC2 (*(volatile unsigned *)0x40600000)
#define rDISRCC2 (*(volatile unsigned *)0x40600004)
#define rDIDST2 (*(volatile unsigned *)0x40600008)
#define rDIDSTC2 (*(volatile unsigned *)0x4060000C)
#define rDCON2 (*(volatile unsigned *)0x40600010)
#define rDSTAT2 (*(volatile unsigned *)0x40600014)
#define rDCSRC2 (*(volatile unsigned *)0x40600018)
#define rDCDST2 (*(volatile unsigned *)0x4060001C)
#define rDMASKTRIG2 (*(volatile unsigned *)0x40600020)
#define rDISRC3 (*(volatile unsigned *)0x40700000)
#define rDISRCC3 (*(volatile unsigned *)0x40700004)
#define rDIDST3 (*(volatile unsigned *)0x40700008)
#define rDIDSTC3 (*(volatile unsigned *)0x4070000C)
#define rDCON3 (*(volatile unsigned *)0x40700010)
#define rDSTAT3 (*(volatile unsigned *)0x40700014)
#define rDCSRC3 (*(volatile unsigned *)0x40700018)
#define rDCDST3 (*(volatile unsigned *)0x4070001C)
#define rDMASKTRIG3 (*(volatile unsigned *)0x40700020)
//RTC (Real Time Clock)
#define rRTCCON (*(volatile unsigned char*)0x44200040)
#define rTICINT (*(volatile unsigned char*)0x44200044)
#define rRTCALM (*(volatile unsigned char*)0x44200050)
#define rALMSEC (*(volatile unsigned char*)0x44200054)
#define rALMMIN (*(volatile unsigned char*)0x44200058)
#define rALMHOUR (*(volatile unsigned char*)0x4420005C)
#define rALMDATE (*(volatile unsigned char*)0x44200060)
#define rALMMON (*(volatile unsigned char*)0x44200064)
#define rALMYEAR (*(volatile unsigned char*)0x44200068)
#define rRTCRST (*(volatile unsigned char*)0x4420006C)
#define rBCDSEC (*(volatile unsigned char*)0x44200070)
#define rBCDMIN (*(volatile unsigned char*)0x44200074)
#define rBCDHOUR (*(volatile unsigned char*)0x44200078)
#define rBCDDATE (*(volatile unsigned char*)0x4420007C)
#define rBCDDAY (*(volatile unsigned char*)0x44200080)
#define rBCDMON (*(volatile unsigned char*)0x44200084)
#define rBCDYEAR (*(volatile unsigned char*)0x44200088)
//UART
#define rULCON0 (*(volatile unsigned *)0x44400000)
#define rUCON0 (*(volatile unsigned *)0x44400004)
#define rUFCON0 (*(volatile unsigned *)0x44400008)
#define rUMCON0 (*(volatile unsigned *)0x4440000C)
#define rUTRSTAT0 (*(volatile unsigned *)0x44400010)
#define rUERSTAT0 (*(volatile unsigned *)0x44400014)
#define rUFSTAT0 (*(volatile unsigned *)0x44400018)
#define rUMSTAT0 (*(volatile unsigned *)0x4440001C)
#define rUBRDIV0 (*(volatile unsigned *)0x44400028)
#define rULCON1 (*(volatile unsigned *)0x44404000)
#define rUCON1 (*(volatile unsigned *)0x44404004)
#define rUFCON1 (*(volatile unsigned *)0x44404008)
#define rUMCON1 (*(volatile unsigned *)0x4440400C)
#define rUTRSTAT1 (*(volatile unsigned *)0x44404010)
#define rUERSTAT1 (*(volatile unsigned *)0x44404014)
#define rUFSTAT1 (*(volatile unsigned *)0x44404018)
#define rUMSTAT1 (*(volatile unsigned *)0x4440401C)
#define rUBRDIV1 (*(volatile unsigned *)0x44404028)
#define rUTXH0 (*(volatile unsigned char*)0x44400020)
#define rURXH0 (*(volatile unsigned char*)0x44400024)
#define rUTXH1 (*(volatile unsigned char*)0x44404020)
#define rURXH1 (*(volatile unsigned char*)0x44404024)
#define WrUTXH0(ch) (*(volatile unsigned char *)0x44400020)=(unsigned char)(ch)
#define RdURXH0() (*(volatile unsigned char *)0x44400024)
#define WrUTXH1(ch) (*(volatile unsigned char *)0x44404020)=(unsigned char)(ch)
#define RdURXH1() (*(volatile unsigned char *)0x44404024)
//IIC
#define rIICCON (*(volatile unsigned *)0x44600000)
#define rIICSTAT (*(volatile unsigned *)0x44600004)
#define rIICADD (*(volatile unsigned *)0x44600008)
#define rIICDS (*(volatile unsigned *)0x4460000C)
#define rIICSDADLY (*(volatile unsigned *)0x44600010)
//IIS
#define rIISCON (*(volatile unsigned *)0x44700000)
#define rIISMOD (*(volatile unsigned *)0x44700004)
#define rIISPSR (*(volatile unsigned *)0x44700008)
#define rIISFCON (*(volatile unsigned *)0x4470000C)
#define rIISFIFO (*(volatile unsigned short*)0x44700010)
#define IISFIFO ((volatile unsigned short *)0x44700010) //IIS FIFO entry
//SPI
#define rSPCON0 (*(volatile unsigned *)0x44500000)
#define rSPSTA0 (*(volatile unsigned *)0x44500004)
#define rSPPIN0 (*(volatile unsigned *)0x44500008)
#define rSPPRE0 (*(volatile unsigned *)0x4450000C)
#define rSPTDAT0 (*(volatile unsigned *)0x44500010)
#define rSPRDAT0 (*(volatile unsigned *)0x44500014)
#define rSPCON1 (*(volatile unsigned *)0x44500020)
#define rSPSTA1 (*(volatile unsigned *)0x44500024)
#define rSPPIN1 (*(volatile unsigned *)0x44500028)
#define rSPPRE1 (*(volatile unsigned *)0x4450002C)
#define rSPTDAT1 (*(volatile unsigned *)0x44500030)
#define rSPRDAT1 (*(volatile unsigned *)0x44500034)
//AC97
#define rAC_GLBCTRL (*(volatile unsigned *)0x45000000)
#define rAC_GLBSTAT (*(volatile unsigned *)0x45000004)
#define rAC_CODEC_CMD (*(volatile unsigned *)0x45000008)
#define rAC_CODEC_STAT (*(volatile unsigned *)0x4500000C)
#define rAC_PCM_ADDR (*(volatile unsigned *)0x45000010)
#define rAC_MICADDR (*(volatile unsigned *)0x45000014)
#define rAC_PCMDATA (*(volatile unsigned *)0x45000018)
#define rAC_MICDATA (*(volatile unsigned *)0x4500001C)
//USB Host
#define rHcRevision (*(volatile unsigned *)0x41000000)
#define rHcControl (*(volatile unsigned *)0x41000004)
#define rHcCommonStatus (*(volatile unsigned *)0x41000008)
#define rHcInterruptStatus (*(volatile unsigned *)0x4100000C)
#define rHcInterruptEnable (*(volatile unsigned *)0x41000010)
#define rHcInterruptDisable (*(volatile unsigned *)0x41000014)
#define rHcHCCA (*(volatile unsigned *)0x41000018)
#define rHcPeriodCuttentED (*(volatile unsigned *)0x4100001C)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -