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

s3c2440头文件之2440addr.h

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

#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)
#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 // __BIG_ENDIAN

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

网站地图

Top