📄 2413addr.h
字号:
#define rIN_CSR1_REG (*(volatile unsigned char *)0x52000184) //In endpoint control status 1
#define rIN_CSR2_REG (*(volatile unsigned char *)0x52000188) //In endpoint control status 2
#define rOUT_CSR1_REG (*(volatile unsigned char *)0x52000190) //Out endpoint control status 1
#define rOUT_CSR2_REG (*(volatile unsigned char *)0x52000194) //Out endpoint control status 2
#define rOUT_FIFO_CNT1_REG (*(volatile unsigned char *)0x52000198) //Endpoint out write count 1
#define rOUT_FIFO_CNT2_REG (*(volatile unsigned char *)0x5200019c) //Endpoint out write count 2
#define rEP0_FIFO (*(volatile unsigned char *)0x520001c0) //Endpoint 0 FIFO
#define rEP1_FIFO (*(volatile unsigned char *)0x520001c4) //Endpoint 1 FIFO
#define rEP2_FIFO (*(volatile unsigned char *)0x520001c8) //Endpoint 2 FIFO
#define rEP3_FIFO (*(volatile unsigned char *)0x520001cc) //Endpoint 3 FIFO
#define rEP4_FIFO (*(volatile unsigned char *)0x520001d0) //Endpoint 4 FIFO
#define rEP1_DMA_CON (*(volatile unsigned char *)0x52000200) //EP1 DMA interface control
#define rEP1_DMA_UNIT (*(volatile unsigned char *)0x52000204) //EP1 DMA transfer unit counter base
#define rEP1_DMA_FIFO (*(volatile unsigned char *)0x52000208) //EP1 DMA transfer FIFO counter base
#define rEP1_DMA_TTC_L (*(volatile unsigned char *)0x5200020c) //EP1 DMA total transfer counter(lower byte)
#define rEP1_DMA_TTC_M (*(volatile unsigned char *)0x52000210) //EP1 DMA total transfer counter(middle byte)
#define rEP1_DMA_TTC_H (*(volatile unsigned char *)0x52000214) //EP1 DMA total transfer counter(high byte)
#define rEP2_DMA_CON (*(volatile unsigned char *)0x52000218) //EP2 DMA interface control
#define rEP2_DMA_UNIT (*(volatile unsigned char *)0x5200021c) //EP2 DMA transfer unit counter base
#define rEP2_DMA_FIFO (*(volatile unsigned char *)0x52000220) //EP2 DMA transfer FIFO counter base
#define rEP2_DMA_TTC_L (*(volatile unsigned char *)0x52000224) //EP2 DMA total transfer counter(lower byte)
#define rEP2_DMA_TTC_M (*(volatile unsigned char *)0x52000228) //EP2 DMA total transfer counter(middle byte)
#define rEP2_DMA_TTC_H (*(volatile unsigned char *)0x5200022c) //EP2 DMA total transfer counter(high byte)
#define rEP3_DMA_CON (*(volatile unsigned char *)0x52000240) //EP3 DMA interface control
#define rEP3_DMA_UNIT (*(volatile unsigned char *)0x52000244) //EP3 DMA transfer unit counter base
#define rEP3_DMA_FIFO (*(volatile unsigned char *)0x52000248) //EP3 DMA transfer FIFO counter base
#define rEP3_DMA_TTC_L (*(volatile unsigned char *)0x5200024c) //EP3 DMA total transfer counter(lower byte)
#define rEP3_DMA_TTC_M (*(volatile unsigned char *)0x52000250) //EP3 DMA total transfer counter(middle byte)
#define rEP3_DMA_TTC_H (*(volatile unsigned char *)0x52000254) //EP3 DMA total transfer counter(high byte)
#define rEP4_DMA_CON (*(volatile unsigned char *)0x52000258) //EP4 DMA interface control
#define rEP4_DMA_UNIT (*(volatile unsigned char *)0x5200025c) //EP4 DMA transfer unit counter base
#define rEP4_DMA_FIFO (*(volatile unsigned char *)0x52000260) //EP4 DMA transfer FIFO counter base
#define rEP4_DMA_TTC_L (*(volatile unsigned char *)0x52000264) //EP4 DMA total transfer counter(lower byte)
#define rEP4_DMA_TTC_M (*(volatile unsigned char *)0x52000268) //EP4 DMA total transfer counter(middle byte)
#define rEP4_DMA_TTC_H (*(volatile unsigned char *)0x5200026c) //EP4 DMA total transfer counter(high byte)
#endif // __BIG_ENDIAN
//chapter13 INTERRUPT
#define rSRCPND (*(volatile unsigned *)0x4a000000) //Interrupt request status
#define rINTMOD (*(volatile unsigned *)0x4a000004) //Interrupt mode control
#define rINTMSK (*(volatile unsigned *)0x4a000008) //Interrupt mask control
#define rPRIORITY (*(volatile unsigned *)0x4a00000c) //IRQ priority control
#define rINTPND (*(volatile unsigned *)0x4a000010) //Interrupt request status
#define rINTOFFSET (*(volatile unsigned *)0x4a000014) //Interrupt request source offset
#define rSUBSRCPND (*(volatile unsigned *)0x4a000018) //Interrupt request status
#define rINTSUBMSK (*(volatile unsigned *)0x4a00001c) //Interrupt source mask
//chapter14 LCD CONTROLLER
#define rLCDCON1 (*(volatile unsigned *)0x4d000000) //LCD control 1
#define rLCDCON2 (*(volatile unsigned *)0x4d000004) //LCD control 2
#define rLCDCON3 (*(volatile unsigned *)0x4d000008) //LCD control 3
#define rLCDCON4 (*(volatile unsigned *)0x4d00000c) //LCD control 4
#define rLCDCON5 (*(volatile unsigned *)0x4d000010) //LCD control 5
#define rLCDCON6 (*(volatile unsigned *)0x4d000034) //LCD control 6
#define rLCDCON7 (*(volatile unsigned *)0x4d000038) //LCD control 7
#define rLCDCON8 (*(volatile unsigned *)0x4d00003C) //LCD control 8
#define rLCDCON9 (*(volatile unsigned *)0x4d000040) //LCD control 9
#define rLCDSADDR1 (*(volatile unsigned *)0x4d000014) //STN/TFT Frame buffer start address 1
#define rLCDSADDR2 (*(volatile unsigned *)0x4d000018) //STN/TFT Frame buffer start address 2
#define rLCDSADDR3 (*(volatile unsigned *)0x4d00001c) //STN/TFT Virtual screen address set
#define rTPAL (*(volatile unsigned *)0x4d000020) //TFT Temporary plette
//#define rGREENLUT (*(volatile unsigned *)0x4d000024) //STN Green lookup table
//#define rBLUELUT (*(volatile unsigned *)0x4d000028) //STN Blue lookup table
//#define rDITHMODE (*(volatile unsigned *)0x4d00004c) //STN Dithering mode
//#define rTPAL (*(volatile unsigned *)0x4d000050) //TFT Temporary palette
#define rLCDINTPND (*(volatile unsigned *)0x4d000024) //LCD Interrupt pending
#define rLCDSRCPND (*(volatile unsigned *)0x4d000028) //LCD Interrupt source
#define rLCDINTMSK (*(volatile unsigned *)0x4d00002c) //LCD Interrupt mask
#define rTCONSEL (*(volatile unsigned *)0x4d000030) //LPC3600 Control --- edited by junon
#define rREDLUT0 (*(volatile unsigned *)0x4d000044) //Red Lookup table[31:0]
#define rREDLUT1 (*(volatile unsigned *)0x4d000048) //Red Lookup table[63:32]
#define rREDLUT2 (*(volatile unsigned *)0x4d00004C) //Red Lookup table[95:64]
#define rREDLUT3 (*(volatile unsigned *)0x4d000050) //Red Lookup table[127:96]
#define rREDLUT4 (*(volatile unsigned *)0x4d000054) //Red Lookup table[159:128]
#define rREDLUT5 (*(volatile unsigned *)0x4d000058) //Red Lookup table[191:160]
#define rREDLUT6 (*(volatile unsigned *)0x4d00005C) //Red Lookup table[223:192]
#define rGREENLUT0 (*(volatile unsigned *)0x4d000060) //GREEN Lookup table[31:0]
#define rGREENLUT1 (*(volatile unsigned *)0x4d000064) //GREEN Lookup table[63:32]
#define rGREENLUT2 (*(volatile unsigned *)0x4d000068) //GREEN Lookup table[95:64]
#define rGREENLUT3 (*(volatile unsigned *)0x4d00006C) //GREEN Lookup table[127:96]
#define rGREENLUT4 (*(volatile unsigned *)0x4d000070) //GREEN Lookup table[159:128]
#define rGREENLUT5 (*(volatile unsigned *)0x4d000074) //GREEN Lookup table[191:160]
#define rGREENLUT6 (*(volatile unsigned *)0x4d000078) //GREEN Lookup table[223:192]
#define rGREENLUT7 (*(volatile unsigned *)0x4d00007C) //GREEN Lookup table[255:224]
#define rGREENLUT8 (*(volatile unsigned *)0x4d000080) //GREEN Lookup table[287:256]
#define rGREENLUT9 (*(volatile unsigned *)0x4d000084) //GREEN Lookup table[319:288]
#define rGREENLUT10 (*(volatile unsigned *)0x4d000088) //GREEN Lookup table[351:320]
#define rGREENLUT11 (*(volatile unsigned *)0x4d00008C) //GREEN Lookup table[383:352]
#define rGREENLUT12 (*(volatile unsigned *)0x4d000090) //GREEN Lookup table[415:384]
#define rGREENLUT13 (*(volatile unsigned *)0x4d000094) //GREEN Lookup table[447:416]
#define rBLUELUT0 (*(volatile unsigned *)0x4d000098) //BLUE Lookup table[31:0]
#define rBLUELUT1 (*(volatile unsigned *)0x4d00009C) //BLUE Lookup table[63:32]
#define rBLUELUT2 (*(volatile unsigned *)0x4d0000A0) //BLUE Lookup table[95:64]
#define rBLUELUT3 (*(volatile unsigned *)0x4d0000A4) //BLUE Lookup table[127:96]
#define rBLUELUT4 (*(volatile unsigned *)0x4d0000A8) //BLUE Lookup table[159:128]
#define rBLUELUT5 (*(volatile unsigned *)0x4d0000AC) //BLUE Lookup table[191:160]
#define rBLUELUT6 (*(volatile unsigned *)0x4d0000B0) //BLUE Lookup table[223:192]
#define rFRCPAT0 (*(volatile unsigned *)0x4d0000B4) //FRC Pattern
#define rFRCPAT1 (*(volatile unsigned *)0x4d0000B8) //FRC Pattern
#define rFRCPAT2 (*(volatile unsigned *)0x4d0000BC) //FRC Pattern
#define rFRCPAT3 (*(volatile unsigned *)0x4d0000C0) //FRC Pattern
#define rFRCPAT4 (*(volatile unsigned *)0x4d0000C4) //FRC Pattern
#define rFRCPAT5 (*(volatile unsigned *)0x4d0000C8) //FRC Pattern
#define rFRCPAT6 (*(volatile unsigned *)0x4d0000CC) //FRC Pattern
#define rFRCPAT7 (*(volatile unsigned *)0x4d0000D0) //FRC Pattern
#define rFRCPAT8 (*(volatile unsigned *)0x4d0000D4) //FRC Pattern
#define rFRCPAT9 (*(volatile unsigned *)0x4d0000D8) //FRC Pattern
#define rFRCPAT10 (*(volatile unsigned *)0x4d0000DC) //FRC Pattern
#define rFRCPAT11 (*(volatile unsigned *)0x4d0000E0) //FRC Pattern
#define rFRCPAT12 (*(volatile unsigned *)0x4d0000E4) //FRC Pattern
#define rFRCPAT13 (*(volatile unsigned *)0x4d0000E8) //FRC Pattern
#define rFRCPAT14 (*(volatile unsigned *)0x4d0000EC) //FRC Pattern
#define rFRCPAT15 (*(volatile unsigned *)0x4d0000F0) //FRC Pattern
#define rFRCPAT16 (*(volatile unsigned *)0x4d0000F4) //FRC Pattern
#define rFRCPAT17 (*(volatile unsigned *)0x4d0000F8) //FRC Pattern
#define rFRCPAT18 (*(volatile unsigned *)0x4d0000FC) //FRC Pattern
#define rFRCPAT19 (*(volatile unsigned *)0x4d000100) //FRC Pattern
#define rFRCPAT20 (*(volatile unsigned *)0x4d000104) //FRC Pattern
#define rFRCPAT21 (*(volatile unsigned *)0x4d000108) //FRC Pattern
#define rFRCPAT22 (*(volatile unsigned *)0x4d00010C) //FRC Pattern
#define rFRCPAT23 (*(volatile unsigned *)0x4d000110) //FRC Pattern
#define rFRCPAT24 (*(volatile unsigned *)0x4d000114) //FRC Pattern
#define rFRCPAT25 (*(volatile unsigned *)0x4d000118) //FRC Pattern
#define rFRCPAT26 (*(volatile unsigned *)0x4d00011C) //FRC Pattern
#define rFRCPAT27 (*(volatile unsigned *)0x4d000120) //FRC Pattern
#define rFRCPAT28 (*(volatile unsigned *)0x4d000124) //FRC Pattern
#define rFRCPAT29 (*(volatile unsigned *)0x4d000128) //FRC Pattern
#define rFRCPAT30 (*(volatile unsigned *)0x4d00012C) //FRC Pattern
#define rFRCPAT31 (*(volatile unsigned *)0x4d000130) //FRC Pattern
#define rFRCPAT32 (*(volatile unsigned *)0x4d000134) //FRC Pattern
#define rFRCPAT33 (*(volatile unsigned *)0x4d000138) //FRC Pattern
#define rFRCPAT34 (*(volatile unsigned *)0x4d00013C) //FRC Pattern
#define rFRCPAT35 (*(volatile unsigned *)0x4d000140) //FRC Pattern
#define rFRCPAT36 (*(volatile unsigned *)0x4d000144) //FRC Pattern
#define rFRCPAT37 (*(volatile unsigned *)0x4d000148) //FRC Pattern
#define rFRCPAT38 (*(volatile unsigned *)0x4d00014C) //FRC Pattern
#define rFRCPAT39 (*(volatile unsigned *)0x4d000150) //FRC Pattern
#define rFRCPAT40 (*(volatile unsigned *)0x4d000154) //FRC Pattern
#define rFRCPAT41 (*(volatile unsigned *)0x4d000158) //FRC Pattern
#define rFRCPAT42 (*(volatile unsigned *)0x4d00015C) //FRC Pattern
#define rFRCPAT43 (*(volatile unsigned *)0x4d000160) //FRC Pattern
#define rFRCPAT44 (*(volatile unsigned *)0x4d000164) //FRC Pattern
#define rFRCPAT45 (*(volatile unsigned *)0x4d000168) //FRC Pattern
#define rFRCPAT46 (*(volatile unsigned *)0x4d00016C) //FRC Pattern
#define rFRCPAT47 (*(volatile unsigned *)0x4d000170) //FRC Pattern
#define rFRCPAT48 (*(volatile unsigned *)0x4d000174) //FRC Pattern
#define rFRCPAT49 (*(volatile unsigned *)0x4d000178) //FRC Pattern
#define rFRCPAT50 (*(volatile unsigned *)0x4d00017C) //FRC Pattern
#define rFRCPAT51 (*(volatile unsigned *)0x4d000180) //FRC Pattern
#define rFRCPAT52 (*(volatile unsigned *)0x4d000184) //FRC Pattern
#define rFRCPAT53 (*(volatile unsigned *)0x4d000188) //FRC Pattern
#define rFRCPAT54 (*(volatile unsigned *)0x4d00018C) //FRC Pattern
#define rFRCPAT55 (*(volatile unsigned *)0x4d000190) //FRC Pattern
#define rFRCPAT56 (*(volatile unsigned *)0x4d000194) //FRC Pattern
#define rFRCPAT57 (*(volatile unsigned *)0x4d000198) //FRC Pattern
#define rFRCPAT58 (*(volatile unsigned *)0x4d00019C) //FRC Pattern
#define rFRCPAT59 (*(volatile unsigned *)0x4d0001A0) //FRC Pattern
#define rFRCPAT60 (*(volatile unsigned *)0x4d0001A4) //FRC Pattern
#define rFRCPAT61 (*(volatile unsigned *)0x4d0001A8) //FRC Pattern
#define rFRCPAT62 (*(volatile unsigned *)0x4d0001AC) //FRC Pattern
#define rFRCPAT63 (*(volatile unsigned *)0x4d0001B0) //FRC Pattern
#define rLCDTEST (*(volatile unsigned *)0x4d0001B4) //FRC Pattern
// chapter15 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 // Absence in 2413
// chapter16 RTC
#ifdef __BIG_ENDIAN
#define rRTCCON (*(volatile unsigned char *)0x57000043) //RTC control
#define rTICNT0 (*(volatile unsigned char *)0x57000047) //Tick time count register 0
#define rTICNT1 (*(volatile unsigned char *)0x5700004F) //Tick time count register 1
#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 rTICNT0 (*(volatile unsigned char *)0x57000044) //Tick time count register 0
#define rTICNT1 (*(volatile unsigned char *)0x5700004c) //Tick time count register 1
#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
// chapter17 WATCH DOG TIMER
#define rWTCON (*(volatile unsigned *)0x53000000) //Watch-dog timer mode
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -