⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2413addr.h

📁 三星2413芯片的测试代码,对进行驱动开发很有帮助.
💻 H
📖 第 1 页 / 共 5 页
字号:
#define rEP_INT_REG        (*(volatile unsigned char *)0x5200014b)	//EndPoint Interrupt 
#define rUSB_INT_REG       (*(volatile unsigned char *)0x5200015b)	//USB Interrupt 
#define rEP_INT_EN_REG     (*(volatile unsigned char *)0x5200015f)	//Endpoint Interrupt enable
#define rUSB_INT_EN_REG    (*(volatile unsigned char *)0x5200016f)  //USB Interrupt enable
#define rFRAME_NUM1_REG    (*(volatile unsigned char *)0x52000173)	//Frame number 1
#define rFRAME_NUM2_REG    (*(volatile unsigned char *)0x52000177)	//Frame number 2
#define rINDEX_REG         (*(volatile unsigned char *)0x5200017b)	//Register index
#define rMAXP_REG          (*(volatile unsigned char *)0x52000183)	//Endpoint max packet
#define rEP0_CSR           (*(volatile unsigned char *)0x52000187)	//Endpoint 0 status
#define rIN_CSR1_REG       (*(volatile unsigned char *)0x52000187)	//EP In control status 1/EP0 control status
#define rIN_CSR2_REG       (*(volatile unsigned char *)0x5200018b)  //EP In control status
#define rOUT_CSR1_REG      (*(volatile unsigned char *)0x52000193)	//EP Out control status 1
#define rOUT_CSR2_REG      (*(volatile unsigned char *)0x52000197)	//EP Out control status 2
#define rOUT_FIFO_CNT1_REG (*(volatile unsigned char *)0x5200019b)	//Endpoint out write count 1
#define rOUT_FIFO_CNT2_REG (*(volatile unsigned char *)0x5200019f)	//Endpoint out write count 2
#define rEP0_FIFO          (*(volatile unsigned char *)0x520001c3)	//Endpoint 0 FIFO
#define rEP1_FIFO          (*(volatile unsigned char *)0x520001c7)	//Endpoint 1 FIFO
#define rEP2_FIFO          (*(volatile unsigned char *)0x520001cb)	//Endpoint 2 FIFO
#define rEP3_FIFO          (*(volatile unsigned char *)0x520001cf)	//Endpoint 3 FIFO
#define rEP4_FIFO          (*(volatile unsigned char *)0x520001d3)	//Endpoint 4 FIFO
#define rEP1_DMA_CON       (*(volatile unsigned char *)0x52000203)	//EP1 DMA control
#define rEP1_DMA_UNIT      (*(volatile unsigned char *)0x52000207)	//EP1 DMA unit counter
#define rEP1_DMA_FIFO      (*(volatile unsigned char *)0x5200020b)	//EP1 DMA FIFO counter
#define rEP1_DMA_TTC_L     (*(volatile unsigned char *)0x5200020f)	//EP1 DMA Transfer counter low-byte
#define rEP1_DMA_TTC_M     (*(volatile unsigned char *)0x52000213)  //EP1 DMA Transfer counter middle-byte
#define rEP1_DMA_TTC_H     (*(volatile unsigned char *)0x52000217)  //EP1 DMA Transfer counter high-byte
#define rEP2_DMA_CON       (*(volatile unsigned char *)0x5200021b)	//EP2 DMA control
#define rEP2_DMA_UNIT      (*(volatile unsigned char *)0x5200021f)	//EP2 DMA unit counter
#define rEP2_DMA_FIFO      (*(volatile unsigned char *)0x52000223)	//EP2 DMA FIFO counter
#define rEP2_DMA_TTC_L     (*(volatile unsigned char *)0x52000227)	//EP2 DMA Transfer counter low-byte
#define rEP2_DMA_TTC_M     (*(volatile unsigned char *)0x5200022b)  //EP2 DMA Transfer counter middle-byte
#define rEP2_DMA_TTC_H     (*(volatile unsigned char *)0x5200022f)  //EP2 DMA Transfer counter high-byte
#define rEP3_DMA_CON       (*(volatile unsigned char *)0x52000243)	//EP3 DMA control
#define rEP3_DMA_UNIT      (*(volatile unsigned char *)0x52000247)	//EP3 DMA unit counter
#define rEP3_DMA_FIFO      (*(volatile unsigned char *)0x5200024b)	//EP3 DMA FIFO counter
#define rEP3_DMA_TTC_L     (*(volatile unsigned char *)0x5200024f)	//EP3 DMA Transfer counter low-byte
#define rEP3_DMA_TTC_M     (*(volatile unsigned char *)0x52000253)  //EP3 DMA Transfer counter middle-byte
#define rEP3_DMA_TTC_H     (*(volatile unsigned char *)0x52000257)  //EP3 DMA Transfer counter high-byte
#define rEP4_DMA_CON       (*(volatile unsigned char *)0x5200025b)	//EP4 DMA control
#define rEP4_DMA_UNIT      (*(volatile unsigned char *)0x5200025f)	//EP4 DMA unit counter
#define rEP4_DMA_FIFO      (*(volatile unsigned char *)0x52000263)	//EP4 DMA FIFO counter
#define rEP4_DMA_TTC_L     (*(volatile unsigned char *)0x52000267)	//EP4 DMA Transfer counter low-byte
#define rEP4_DMA_TTC_M     (*(volatile unsigned char *)0x5200026b)  //EP4 DMA Transfer counter middle-byte
#define rEP4_DMA_TTC_H     (*(volatile unsigned char *)0x5200026f)  //EP4 DMA Transfer counter high-byte

#else  // Little Endian
#define rFUNC_ADDR_REG     (*(volatile unsigned char *)0x52000140)	//Function address
#define rPWR_REG           (*(volatile unsigned char *)0x52000144)	//Power management
#define rEP_INT_REG        (*(volatile unsigned char *)0x52000148)	//EP Interrupt pending and clear
#define rUSB_INT_REG       (*(volatile unsigned char *)0x52000158)	//USB Interrupt pending and clear
#define rEP_INT_EN_REG     (*(volatile unsigned char *)0x5200015c)	//Interrupt enable
#define rUSB_INT_EN_REG    (*(volatile unsigned char *)0x5200016c)	//Interrupt enable
#define rFRAME_NUM1_REG    (*(volatile unsigned char *)0x52000170)	//Frame number lower byte
#define rFRAME_NUM2_REG    (*(volatile unsigned char *)0x52000174)	//Frame number higher byte
#define rINDEX_REG         (*(volatile unsigned char *)0x52000178)	//Register index
#define rMAXP_REG          (*(volatile unsigned char *)0x52000180)	//Endpoint max packet
#define rEP0_CSR           (*(volatile unsigned char *)0x52000184)	//Endpoint 0 status
#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 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -