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

📄 reg_define.h

📁 ucos2400移植的源码。从网上下载供大家分享。
💻 H
📖 第 1 页 / 共 2 页
字号:
#define		rTCMPB2			(*(volatile	unsigned *)0x15100028)
#define		rTCNTO2			(*(volatile	unsigned *)0x1510002c)
#define		rTCNTB3			(*(volatile	unsigned *)0x15100030)
#define		rTCMPB3			(*(volatile	unsigned *)0x15100034)
#define		rTCNTO3			(*(volatile	unsigned *)0x15100038)
#define		rTCNTB4			(*(volatile	unsigned *)0x1510003c)
#define		rTCNTO4			(*(volatile	unsigned *)0x15100040)

//=======================================================================================
//         USB DEVICE 
//=======================================================================================
#define		rFUNC_ADDR_REG	(*(volatile	unsigned *)0x15200140)
#define		rPWR_REG		(*(volatile	unsigned *)0x15200144)
#define		rINT_REG		(*(volatile	unsigned *)0x15200148)
#define		rINT_MASK_REG	(*(volatile	unsigned *)0x1520014c)
#define		rFRAME_NUM_REG	(*(volatile	unsigned *)0x15200150)
#define		rRESUME_CON_REG	(*(volatile	unsigned *)0x15200154)
#define		rEP0_CSR		(*(volatile	unsigned *)0x15200160)
#define		rEP0_MAXP		(*(volatile	unsigned *)0x15200164)
#define		rEP0_OUT_CNT	(*(volatile	unsigned *)0x15200168)
#define		rEP0_FIFO		(*(volatile	unsigned *)0x1520016c)
#define		rEP1_IN_CSR		(*(volatile	unsigned *)0x15200180)
#define		rEP1_IN_MAXP	(*(volatile	unsigned *)0x15200184)
#define		rEP1_FIFO		(*(volatile	unsigned *)0x15200188)
#define		rEP2_IN_CSR		(*(volatile	unsigned *)0x15200190)
#define		rEP2_IN_MAXP	(*(volatile	unsigned *)0x15200194)
#define		rEP2_FIFO		(*(volatile	unsigned *)0x15200198)
#define		rEP3_OUT_CSR	(*(volatile	unsigned *)0x152001a0)
#define		rEP3_OUT_MAXP	(*(volatile	unsigned *)0x152001a4)
#define		rEP3_OUT_CNT	(*(volatile	unsigned *)0x152001a8)
#define		rEP3_FIFO		(*(volatile	unsigned *)0x152001ac)
#define		rEP4_OUT_CSR	(*(volatile	unsigned *)0x152001b0)
#define		rEP4_OUT_MAXP	(*(volatile	unsigned *)0x152001b4)
#define		rEP4_OUT_CNT	(*(volatile	unsigned *)0x152001b8)
#define		rEP4_FIFO		(*(volatile	unsigned *)0x152001bc)
#define		rDMA_CON		(*(volatile	unsigned *)0x152001c0)
#define		rDMA_UNIT		(*(volatile	unsigned *)0x152001c4)
#define		rDMA_FIFO		(*(volatile	unsigned *)0x152001c8)
#define		rDMA_TX			(*(volatile	unsigned *)0x152001cc)
#define		rTEST_MODE		(*(volatile	unsigned *)0x152001f4)
#define		rIN_CON_REG		(*(volatile	unsigned *)0x152001f8)

//=======================================================================================
//         WATCH DOG TIMER 
//=======================================================================================
#define		rWTCON			(*(volatile	unsigned *)0x15300000)
#define		rWTDAT			(*(volatile	unsigned *)0x15300004)
#define		rWTCNT			(*(volatile	unsigned *)0x15300008)

//=======================================================================================
//         IIC 
//=======================================================================================
#define		rIICCON			(*(volatile	unsigned *)0x15400000)
#define		rIICSTAT		(*(volatile	unsigned *)0x15400004)
#define		rIICADD			(*(volatile	unsigned *)0x15400008)
#define		rIICDS			(*(volatile	unsigned *)0x1540000c)

//=======================================================================================
//         IIS 
//-------------------------------------------------------------------------
#define		rIISCON			(*(volatile	unsigned *)0x15508000)
#define		rIISMOD			(*(volatile	unsigned *)0x15508004)
#define		rIISPSR			(*(volatile	unsigned *)0x15508008)
#define		rIISFIFCON		(*(volatile	unsigned *)0x1550800c)

#define		IISFIF			((volatile unsigned	short *)0x15508010)

//=======================================================================================
//         I/O PORT	 
//=======================================================================================
#define		rPACON			(*(volatile	unsigned *)0x15600000)
#define		rPADAT			(*(volatile	unsigned *)0x15600004)
						
#define		rPBCON			(*(volatile	unsigned *)0x15600008)
#define		rPBDAT			(*(volatile	unsigned *)0x1560000c)
#define		rPBUP			(*(volatile	unsigned *)0x15600010)
						
#define		rPCCON			(*(volatile	unsigned *)0x15600014)
#define		rPCDAT			(*(volatile	unsigned *)0x15600018)
#define		rPCUP			(*(volatile	unsigned *)0x1560001c)
						
#define		rPDCON			(*(volatile	unsigned *)0x15600020)
#define		rPDDAT			(*(volatile	unsigned *)0x15600024)
#define		rPDUP			(*(volatile	unsigned *)0x15600028)
						
#define		rPECON			(*(volatile	unsigned *)0x1560002c)
#define		rPEDAT			(*(volatile	unsigned *)0x15600030)
#define		rPEUP			(*(volatile	unsigned *)0x15600034)
						
#define		rPFCON			(*(volatile	unsigned *)0x15600038)
#define		rPFDAT			(*(volatile	unsigned *)0x1560003c)
#define		rPFUP			(*(volatile	unsigned *)0x15600040)
						
#define		rPGCON			(*(volatile	unsigned *)0x15600044)
#define		rPGDAT			(*(volatile	unsigned *)0x15600048)
#define		rPGUP			(*(volatile	unsigned *)0x1560004c)
						
#define		rOPENCR			(*(volatile	unsigned *)0x15600050)
#define		rMISCCR			(*(volatile	unsigned *)0x15600054)
#define		rEXTINT			(*(volatile	unsigned *)0x15600058)

//=======================================================================================
//         RTC 
//=======================================================================================
#define		rRTCCON			(*(volatile	unsigned char *)0x15700040)
#define		rRTCALM			(*(volatile	unsigned char *)0x15700050)
#define		rALMSEC			(*(volatile	unsigned char *)0x15700054)
#define		rALMMIN			(*(volatile	unsigned char *)0x15700058)
#define		rALMHOUR		(*(volatile	unsigned char *)0x1570005c)
#define		rALMDAY			(*(volatile	unsigned char *)0x15700060)
#define		rALMMON			(*(volatile	unsigned char *)0x15700064)
#define		rALMYEAR		(*(volatile	unsigned char *)0x15700068)
#define		rRTCRST			(*(volatile	unsigned char *)0x1570006c)
#define		rBCDSEC			(*(volatile	unsigned char *)0x15700070)
#define		rBCDMIN			(*(volatile	unsigned char *)0x15700074)
#define		rBCDHOUR		(*(volatile	unsigned char *)0x15700078)
#define		rBCDDAY			(*(volatile	unsigned char *)0x1570007c)
#define		rBCDDATE		(*(volatile	unsigned char *)0x15700080)
#define		rBCDMON			(*(volatile	unsigned char *)0x15700084)
#define		rBCDYEAR		(*(volatile	unsigned char *)0x15700088)
#define		rTICINT			(*(volatile	unsigned char *)0x15700044)

//=======================================================================================
//         ADC 
//=======================================================================================
#define		rADCCON			(*(volatile	unsigned *)0x15800000)
#define		rADCDAT			(*(volatile	unsigned *)0x15800004)
						
//=======================================================================================
//         SPI 				
//=======================================================================================
#define		rSPCON			(*(volatile	unsigned *)0x15900000)
#define		rSPSTA			(*(volatile	unsigned *)0x15900004)
#define		rSPPIN			(*(volatile	unsigned *)0x15900008)
#define		rSPPRE			(*(volatile	unsigned *)0x1590000c)
#define		rSPTDAT			(*(volatile	unsigned *)0x15900010)
#define		rSPRDAT			(*(volatile	unsigned *)0x15900014)
			 
//=======================================================================================
//         MMC INTERFACE 
//=======================================================================================
#define		rMMCON			(*(volatile	unsigned char *)0x15a00000)
#define		rMMCRR			(*(volatile	unsigned char *)0x15a00004)
#define		rMMFCON			(*(volatile	unsigned char *)0x15a00008)
#define		rMMSTA			(*(volatile	unsigned char *)0x15a0000c)
#define		rMMFSTA			(*(volatile	unsigned short *)0x15a00010)
#define		rMMPRE			(*(volatile	unsigned char *)0x15a00014)
#define		rMMLEN			(*(volatile	unsigned short *)0x15a00018)
#define		rMMCR7			(*(volatile	unsigned *)0x15a0001c)
#define		rMMRSP0			(*(volatile	unsigned *)0x15a00020)
#define		rMMRSP1			(*(volatile	unsigned *)0x15a00024)
#define		rMMRSP2			(*(volatile	unsigned *)0x15a00028)
#define		rMMRSP3			(*(volatile	unsigned *)0x15a0002c)
#define		rMMCMD0			(*(volatile	unsigned char *)0x15a00030)
#define		rMMCMD1			(*(volatile	unsigned *)0x15a00034)
#define		rMMCR16			(*(volatile	unsigned short *)0x15a00038)
#define		rMMDAT			(*(volatile	unsigned char *)0x15a0003c)

//=======================================================================================
//         PENDING BIT 
//=======================================================================================
#define		BIT_EINT0		(0x1)
#define		BIT_EINT1		(0x1<<1)
#define		BIT_EINT2		(0x1<<2)
#define		BIT_EINT3		(0x1<<3)
#define		BIT_EINT4		(0x1<<4)
#define		BIT_EINT5		(0x1<<5)
#define		BIT_EINT6		(0x1<<6)
#define		BIT_EINT7		(0x1<<7)
#define		BIT_TICK		(0x1<<8)
#define		BIT_WDT			(0x1<<9)
#define		BIT_TIMER0		(0x1<<10)
#define		BIT_TIMER1		(0x1<<11)
#define		BIT_TIMER2		(0x1<<12)
#define		BIT_TIMER3		(0x1<<13)
#define		BIT_TIMER4		(0x1<<14)
#define		BIT_UERR01		(0x1<<15)
#define		BIT_NOTUSED		(0x1<<16)
#define		BIT_DMA0		(0x1<<17)
#define		BIT_DMA1		(0x1<<18)
#define		BIT_DMA2		(0x1<<19)
#define		BIT_DMA3		(0x1<<20)
#define		BIT_MMC			(0x1<<21)
#define		BIT_SPI			(0x1<<22)
#define		BIT_URXD0		(0x1<<23)
#define		BIT_URXD1		(0x1<<24)
#define		BIT_USBD		(0x1<<25)
#define		BIT_USBH		(0x1<<26)
#define		BIT_IIC			(0x1<<27)
#define		BIT_UTXD0		(0x1<<28)
#define		BIT_UTXD1		(0x1<<29)
#define		BIT_RTC			(0x1<<30)
#define		BIT_ADC			(0x1<<31)
#define		BIT_ALLMSK		(0xffffffff)

#define ClearPending(bit) {\
		 rSRCPND = bit;\
		 rINTPND = bit;\
		 }	 
//=======================================================================================

⌨️ 快捷键说明

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