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

📄 s3c2410.h

📁 os arm os arm os arm os arm os arm os arm os arm os arm os arm os arm os arm os arm os arm os arm
💻 H
📖 第 1 页 / 共 2 页
字号:

//ADC register
#define rADCCON 	(*(volatile unsigned int *)0x58000000)
#define rADCTSC 	(*(volatile unsigned int *)0x58000004)
#define rADCDLY 	(*(volatile unsigned int *)0x58000008)
#define rADCDAT0 	(*(volatile unsigned int *)0x5800000C)
#define rADCDAT1 	(*(volatile unsigned int *)0x58000010)

//DMA register
#define rDISRC0 	(*(volatile unsigned int *)0x4B000000)
#define rDISRCC0 	(*(volatile unsigned int *)0x4B000004)
#define rDIDST0 	(*(volatile unsigned int *)0x4B000008)
#define rDIDSTC0 	(*(volatile unsigned int *)0x4B00000C)
#define rDCON0		(*(volatile unsigned int *)0x4B000010)
#define rDSTAT0		(*(volatile unsigned int *)0x4B000014)
#define rDCSRC0		(*(volatile unsigned int *)0x4B000018)
#define rDCDST0		(*(volatile unsigned int *)0x4B00001C)
#define rDMASKTRIG0	(*(volatile unsigned int *)0x4B000020)

#define rDISRC1 	(*(volatile unsigned int *)0x4B000040)
#define rDISRCC1 	(*(volatile unsigned int *)0x4B000044)
#define rDIDST1 	(*(volatile unsigned int *)0x4B000048)
#define rDIDSTC1 	(*(volatile unsigned int *)0x4B00004C)
#define rDCON1		(*(volatile unsigned int *)0x4B000050)
#define rDSTAT1		(*(volatile unsigned int *)0x4B000054)
#define rDCSRC1		(*(volatile unsigned int *)0x4B000058)
#define rDCDST1		(*(volatile unsigned int *)0x4B00005C)
#define rDMASKTRIG1	(*(volatile unsigned int *)0x4B000060)

#define rDISRC2 	(*(volatile unsigned int *)0x4B000080)
#define rDISRCC2 	(*(volatile unsigned int *)0x4B000084)
#define rDIDST2 	(*(volatile unsigned int *)0x4B000088)
#define rDIDSTC2 	(*(volatile unsigned int *)0x4B00008C)
#define rDCON2		(*(volatile unsigned int *)0x4B000090)
#define rDSTAT2		(*(volatile unsigned int *)0x4B000094)
#define rDCSRC2		(*(volatile unsigned int *)0x4B000098)
#define rDCDST2		(*(volatile unsigned int *)0x4B00009C)
#define rDMASKTRIG2	(*(volatile unsigned int *)0x4B0000A0)

#define rDISRC3 	(*(volatile unsigned int *)0x4B0000C0)
#define rDISRCC3 	(*(volatile unsigned int *)0x4B0000C4)
#define rDIDST3 	(*(volatile unsigned int *)0x4B0000C8)
#define rDIDSTC3 	(*(volatile unsigned int *)0x4B0000CC)
#define rDCON3		(*(volatile unsigned int *)0x4B0000D0)
#define rDSTAT3		(*(volatile unsigned int *)0x4B0000D4)
#define rDCSRC3		(*(volatile unsigned int *)0x4B0000D8)
#define rDCDST3		(*(volatile unsigned int *)0x4B0000DC)
#define rDMASKTRIG3	(*(volatile unsigned int *)0x4B0000E0)

//sdi register
#define rSDICON		(*(volatile unsigned int *)0x5A000000)
#define rSDIPRE		(*(volatile unsigned int *)0x5A000004)
#define rSDICARG	(*(volatile unsigned int *)0x5A000008)
#define rSDICCON	(*(volatile unsigned int *)0x5A00000C)
#define rSDICSTA	(*(volatile unsigned int *)0x5A000010)
#define rSDIRSP0	(*(volatile unsigned int *)0x5A000014)
#define rSDIRSP1	(*(volatile unsigned int *)0x5A000018)
#define rSDIRSP2	(*(volatile unsigned int *)0x5A00001C)
#define rSDIRSP3	(*(volatile unsigned int *)0x5A000020)
#define rSDIDTIMER	(*(volatile unsigned int *)0x5A000024)
#define rSDIBSIZE	(*(volatile unsigned int *)0x5A000028)
#define rSDIDCON	(*(volatile unsigned int *)0x5A00002C)
#define rSDIDCNT	(*(volatile unsigned int *)0x5A000030)
#define rSDIDSTA	(*(volatile unsigned int *)0x5A000034)
#define rSDIFSTA	(*(volatile unsigned int *)0x5A000038)
#define rSDIDAT		(*(volatile unsigned int *)0x5A00003C)
#define rSDIIMSK	(*(volatile unsigned int *)0x5A000040)

//iis register
#define rIISCON		(*(volatile unsigned short *)0x55000000)
#define rIISMOD		(*(volatile unsigned short *)0x55000004)
#define rIISPSR		(*(volatile unsigned short *)0x55000008)
#define rIISFCON	(*(volatile unsigned short *)0x5500000C)
#define rIISFIFO	(*(volatile unsigned short *)0x55000010)




//USB Host register
#define rHcRevision		(*(volatile unsigned int *)0x49000000)
#define rHcControl		(*(volatile unsigned int *)0x49000004)
#define rHcCommonStatus		(*(volatile unsigned int *)0x49000008)
#define rHcInterruptStatus	(*(volatile unsigned int *)0x4900000C)
#define rHcInterruptEnable	(*(volatile unsigned int *)0x49000010)
#define rHcInterruptDisable	(*(volatile unsigned int *)0x49000014)
#define rHcHCCA			(*(volatile unsigned int *)0x49000018)
#define rHcPeriodCuttentED	(*(volatile unsigned int *)0x4900001C)
#define rHcControlHeadED	(*(volatile unsigned int *)0x49000020)
#define rHcControlCurrentED	(*(volatile unsigned int *)0x49000024)
#define rHcBulkHeadED		(*(volatile unsigned int *)0x49000028)
#define rHcBulkCurrentED	(*(volatile unsigned int *)0x4900002C)
#define rHcDoneHead		(*(volatile unsigned int *)0x49000030)
#define rHcRmInterval		(*(volatile unsigned int *)0x49000034)
#define rHcFmRemaining		(*(volatile unsigned int *)0x49000038)
#define rHcFmNumber		(*(volatile unsigned int *)0x4900003C)
#define rHcPeriodicStart	(*(volatile unsigned int *)0x49000040)
#define rHcLSThreshold		(*(volatile unsigned int *)0x49000044)
#define rHcRhDescriptorA	(*(volatile unsigned int *)0x49000048)
#define rHcRhDescriptorB	(*(volatile unsigned int *)0x4900004C)
#define rHcRhStatus		(*(volatile unsigned int *)0x49000050)
#define rHcRhPortStatus1	(*(volatile unsigned int *)0x49000054)
#define rHcRhPortStatus2	(*(volatile unsigned int *)0x49000058)
//USB Device register
#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)
#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
#define rIN_CSR2_REG	(*(volatile unsigned char *)0x52000188)
#define rOUT_CSR1_REG	(*(volatile unsigned char *)0x52000190) //Out endpoint control status
#define rOUT_CSR2_REG	(*(volatile unsigned char *)0x52000194)
#define rOUT_FIFO_CNT1_REG	(*(volatile unsigned char *)0x52000198) //Endpoint out write count
#define rOUT_FIFO_CNT2_REG	(*(volatile unsigned char *)0x5200019c)
#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 Tx unit counter
#define rEP1_DMA_FIFO	(*(volatile unsigned char *)0x52000208) //EP1 DMA Tx FIFO counter
#define rEP1_DMA_TTC_L	(*(volatile unsigned char *)0x5200020c) //EP1 DMA total Tx counter
#define rEP1_DMA_TTC_M	(*(volatile unsigned char *)0x52000210)
#define rEP1_DMA_TTC_H	(*(volatile unsigned char *)0x52000214)
#define rEP2_DMA_CON	(*(volatile unsigned char *)0x52000218) //EP2 DMA interface control
#define rEP2_DMA_UNIT	(*(volatile unsigned char *)0x5200021c) //EP2 DMA Tx unit counter
#define rEP2_DMA_FIFO	(*(volatile unsigned char *)0x52000220) //EP2 DMA Tx FIFO counter
#define rEP2_DMA_TTC_L	(*(volatile unsigned char *)0x52000224) //EP2 DMA total Tx counter
#define rEP2_DMA_TTC_M	(*(volatile unsigned char *)0x52000228)
#define rEP2_DMA_TTC_H	(*(volatile unsigned char *)0x5200022c)
#define rEP3_DMA_CON	(*(volatile unsigned char *)0x52000240) //EP3 DMA interface control
#define rEP3_DMA_UNIT	(*(volatile unsigned char *)0x52000244) //EP3 DMA Tx unit counter
#define rEP3_DMA_FIFO	(*(volatile unsigned char *)0x52000248) //EP3 DMA Tx FIFO counter
#define rEP3_DMA_TTC_L	(*(volatile unsigned char *)0x5200024c) //EP3 DMA total Tx counter
#define rEP3_DMA_TTC_M	(*(volatile unsigned char *)0x52000250)
#define rEP3_DMA_TTC_H	(*(volatile unsigned char *)0x52000254)
#define rEP4_DMA_CON	(*(volatile unsigned char *)0x52000258) //EP4 DMA interface control
#define rEP4_DMA_UNIT	(*(volatile unsigned char *)0x5200025c) //EP4 DMA Tx unit counter
#define rEP4_DMA_FIFO	(*(volatile unsigned char *)0x52000260) //EP4 DMA Tx FIFO counter
#define rEP4_DMA_TTC_L	(*(volatile unsigned char *)0x52000264) //EP4 DMA total Tx counter
#define rEP4_DMA_TTC_M	(*(volatile unsigned char *)0x52000268)
#define rEP4_DMA_TTC_H	(*(volatile unsigned char *)0x5200026c)

#endif

⌨️ 快捷键说明

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