s3c2440头文件之2440addr.h
// Added for 2440
#define rFLTOUT(*(volatile unsigned *)0x560000c0)// Filter output(Read on
#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 da
#define rADCDAT1 (*(volatile unsigned *)0x58000010)//ADC conversion da
#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 da
#define rSPRDAT0 (*(volatile unsigned *)0x59000014)//SPI0 Rx da
s3c2440头文件2440addr 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)