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

s3c2440头文件之2440addr.h

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

// Added for 2440
#define rFLTOUT(*(volatile unsigned *)0x560000c0)// Filter output(Read only)
#define rDSC0(*(volatile unsigned *)0x560000c4)// Strength control register 0
#define rDSC1(*(volatile unsigned *)0x560000c8)// Strength control register 1
#define rMSLCON(*(volatile unsigned *)0x560000cc)// Memory sleep control register

// RTC
#ifdef __BIG_ENDIAN
#define rRTCCON (*(volatile unsigned char *)0x57000043)//RTC control
#define rTICNT (*(volatile unsigned char *)0x57000047)//Tick time count
#define rRTCALM (*(volatile unsigned char *)0x57000053)//RTC alarm control
#define rALMSEC (*(volatile unsigned char *)0x57000057)//Alarm second
#define rALMMIN (*(volatile unsigned char *)0x5700005b)//Alarm minute
#define rALMHOUR (*(volatile unsigned char *)0x5700005f)//Alarm Hour
#define rALMDATE (*(volatile unsigned char *)0x57000063)//Alarm date //edited by junon
#define rALMMON (*(volatile unsigned char *)0x57000067)//Alarm month
#define rALMYEAR (*(volatile unsigned char *)0x5700006b)//Alarm year
#define rRTCRST (*(volatile unsigned char *)0x5700006f)//RTC round reset
#define rBCDSEC (*(volatile unsigned char *)0x57000073)//BCD second
#define rBCDMIN (*(volatile unsigned char *)0x57000077)//BCD minute
#define rBCDHOUR (*(volatile unsigned char *)0x5700007b)//BCD hour
#define rBCDDATE (*(volatile unsigned char *)0x5700007f)//BCD date //edited by junon
#define rBCDDAY (*(volatile unsigned char *)0x57000083)//BCD day //edited by junon
#define rBCDMON (*(volatile unsigned char *)0x57000087)//BCD month
#define rBCDYEAR (*(volatile unsigned char *)0x5700008b)//BCD year

#else //Little Endian
#define rRTCCON (*(volatile unsigned char *)0x57000040)//RTC control
#define rTICNT (*(volatile unsigned char *)0x57000044)//Tick time count
#define rRTCALM (*(volatile unsigned char *)0x57000050)//RTC alarm control
#define rALMSEC (*(volatile unsigned char *)0x57000054)//Alarm second
#define rALMMIN (*(volatile unsigned char *)0x57000058)//Alarm minute
#define rALMHOUR (*(volatile unsigned char *)0x5700005c)//Alarm Hour
#define rALMDATE (*(volatile unsigned char *)0x57000060)//Alarm date // edited by junon
#define rALMMON (*(volatile unsigned char *)0x57000064)//Alarm month
#define rALMYEAR (*(volatile unsigned char *)0x57000068)//Alarm year
#define rRTCRST (*(volatile unsigned char *)0x5700006c)//RTC round reset
#define rBCDSEC (*(volatile unsigned char *)0x57000070)//BCD second
#define rBCDMIN (*(volatile unsigned char *)0x57000074)//BCD minute
#define rBCDHOUR (*(volatile unsigned char *)0x57000078)//BCD hour
#define rBCDDATE (*(volatile unsigned char *)0x5700007c)//BCD date //edited by junon
#define rBCDDAY (*(volatile unsigned char *)0x57000080)//BCD day //edited by junon
#define rBCDMON (*(volatile unsigned char *)0x57000084)//BCD month
#define rBCDYEAR (*(volatile unsigned char *)0x57000088)//BCD year
#endif //RTC

// ADC
#define rADCCON (*(volatile unsigned *)0x58000000)//ADC control
#define rADCTSC (*(volatile unsigned *)0x58000004)//ADC touch screen control
#define rADCDLY (*(volatile unsigned *)0x58000008)//ADC start or Interval Delay
#define rADCDAT0 (*(volatile unsigned *)0x5800000c)//ADC conversion data 0
#define rADCDAT1 (*(volatile unsigned *)0x58000010)//ADC conversion data 1
#define rADCUPDN (*(volatile unsigned *)0x58000014)//Stylus Up/Down interrupt status

// SPI
#define rSPCON0 (*(volatile unsigned *)0x59000000)//SPI0 control
#define rSPSTA0 (*(volatile unsigned *)0x59000004)//SPI0 status
#define rSPPIN0 (*(volatile unsigned *)0x59000008)//SPI0 pin control
#define rSPPRE0 (*(volatile unsigned *)0x5900000c)//SPI0 baud rate prescaler
#define rSPTDAT0 (*(volatile unsigned *)0x59000010)//SPI0 Tx data
#define rSPRDAT0 (*(volatile unsigned *)0x59000014)//SPI0 Rx data

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

网站地图

Top