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

📄 lpc288x.h

📁 nxp的LPC2888处理器的示例代码.
💻 H
📖 第 1 页 / 共 4 页
字号:
#define APB0PSR1   	  (*((volatile unsigned int *) 0x80004238))
#define EVRTPSR   	  (*((volatile unsigned int *) 0x8000423C))
#define RTCPSR0   	  (*((volatile unsigned int *) 0x80004240))
#define ADCPSR0   	  (*((volatile unsigned int *) 0x80004244))
#define ADCPSR1   	  (*((volatile unsigned int *) 0x80004248))
#define WDTPSR   	  (*((volatile unsigned int *) 0x8000424C))
#define IOCPSR   	  (*((volatile unsigned int *) 0x80004250))
#define CGUPSR   	  (*((volatile unsigned int *) 0x80004254))
#define SYSCPSR   	  (*((volatile unsigned int *) 0x80004258))
#define APB1PSR1   	  (*((volatile unsigned int *) 0x8000425C))
#define T0PSR   	  (*((volatile unsigned int *) 0x80004260))
#define T1PSR   	  (*((volatile unsigned int *) 0x80004264))
#define I2CPSR   	  (*((volatile unsigned int *) 0x80004268))
#define APB3PSR1   	  (*((volatile unsigned int *) 0x8000426C))
#define SCONPSR   	  (*((volatile unsigned int *) 0x80004270))
#define DAIPSR0   	  (*((volatile unsigned int *) 0x80004274))
#define X8		   	  (*((volatile unsigned int *) 0x80004278))
#define DAOPSR0   	  (*((volatile unsigned int *) 0x8000427C))
#define DSSPSR1   	  (*((volatile unsigned int *) 0x80004280))
#define SAI1PSR   	  (*((volatile unsigned int *) 0x80004284))
#define X9 		   	  (*((volatile unsigned int *) 0x80004288))
#define X10		   	  (*((volatile unsigned int *) 0x8000428C))
#define SAI4PSR	   	  (*((volatile unsigned int *) 0x80004290))
#define SAO1PSR	   	  (*((volatile unsigned int *) 0x80004294))
#define SAO2PSR	   	  (*((volatile unsigned int *) 0x80004298))
#define X11		   	  (*((volatile unsigned int *) 0x8000429C))
#define DDACPSR0   	  (*((volatile unsigned int *) 0x800042A0))
#define EDGEPSR	   	  (*((volatile unsigned int *) 0x800042A4))
#define DADCPSR0   	  (*((volatile unsigned int *) 0x800042A8))
#define DADCPSR	   	  (*((volatile unsigned int *) 0x800042AC))
#define RTCPSR1	   	  (*((volatile unsigned int *) 0x800042B0))
#define MCIPSR2	   	  (*((volatile unsigned int *) 0x800042B4))
#define UARTPSR1   	  (*((volatile unsigned int *) 0x800042B8))
#define DDACPSR1   	  (*((volatile unsigned int *) 0x800042BC))
#define DDACPSR2   	  (*((volatile unsigned int *) 0x800042C0))
#define DADCPSR1   	  (*((volatile unsigned int *) 0x800042C4))
#define DADCPSR2   	  (*((volatile unsigned int *) 0x800042C8))
#define DAIPSR1   	  (*((volatile unsigned int *) 0x800042CC))
#define DAIPSR2   	  (*((volatile unsigned int *) 0x800042D0))
#define DAOPSR1   	  (*((volatile unsigned int *) 0x800042D4))
#define DAOPSR2   	  (*((volatile unsigned int *) 0x800042D8))
#define DAOPSR3   	  (*((volatile unsigned int *) 0x800042DC))
#define DAIPSR3   	  (*((volatile unsigned int *) 0x800042E0))
#define X12		   	  (*((volatile unsigned int *) 0x800042E4))

/* Enable Select  */
#define APB0ESR0   	  (*((volatile unsigned int *) 0x800042E8))
#define APB1ESR0   	  (*((volatile unsigned int *) 0x800042EC))
#define APB2ESR0   	  (*((volatile unsigned int *) 0x800042F0))
#define APB3ESR0   	  (*((volatile unsigned int *) 0x800042F4))
#define MMIOESR0   	  (*((volatile unsigned int *) 0x800042F8))
#define AHB0ESR   	  (*((volatile unsigned int *) 0x800042FC))
#define MCIESR0   	  (*((volatile unsigned int *) 0x80004300))
#define MCIESR1   	  (*((volatile unsigned int *) 0x80004304))
#define UARTESR0   	  (*((volatile unsigned int *) 0x80004308))
#define DSSESR0   	  (*((volatile unsigned int *) 0x8000430C))
#define X13		   	  (*((volatile unsigned int *) 0x80004310))
#define FLSHESR0   	  (*((volatile unsigned int *) 0x80004314))
#define FLSHESR1   	  (*((volatile unsigned int *) 0x80004318))
#define FLSHESR2   	  (*((volatile unsigned int *) 0x8000431C))
#define LCDESR0   	  (*((volatile unsigned int *) 0x80004320))
#define LCDESR1   	  (*((volatile unsigned int *) 0x80004324))
#define DMAESR0   	  (*((volatile unsigned int *) 0x80004328))
#define DMAESR1   	  (*((volatile unsigned int *) 0x8000432C))
#define USBESR0   	  (*((volatile unsigned int *) 0x80004330))
#define CPUESR0   	  (*((volatile unsigned int *) 0x80004334))
#define CPUESR1   	  (*((volatile unsigned int *) 0x80004338))
#define CPUESR2   	  (*((volatile unsigned int *) 0x8000433C))
#define RAMESR   	  (*((volatile unsigned int *) 0x80004340))
#define ROMESR   	  (*((volatile unsigned int *) 0x80004344))
#define EMCESR0   	  (*((volatile unsigned int *) 0x80004348))
#define EMCESR1   	  (*((volatile unsigned int *) 0x8000434C))
#define MMIOESR1   	  (*((volatile unsigned int *) 0x80004350))
#define APB0ESR1   	  (*((volatile unsigned int *) 0x80004354))
#define EVRTESR   	  (*((volatile unsigned int *) 0x80004358))
#define RTCESR   	  (*((volatile unsigned int *) 0x8000435C))
#define ADCESR0   	  (*((volatile unsigned int *) 0x80004360))
#define ADCESR1   	  (*((volatile unsigned int *) 0x80004364))
#define WDTESR   	  (*((volatile unsigned int *) 0x80004368))
#define IOCESR   	  (*((volatile unsigned int *) 0x8000436C))
#define CGUESR   	  (*((volatile unsigned int *) 0x80004370))
#define SYSCESR   	  (*((volatile unsigned int *) 0x80004374))
#define APB1ESR1   	  (*((volatile unsigned int *) 0x80004378))
#define T0ESR   	  (*((volatile unsigned int *) 0x8000437C))
#define T1ESR   	  (*((volatile unsigned int *) 0x80004380))
#define I2CESR   	  (*((volatile unsigned int *) 0x80004384))
#define APB3ESR1   	  (*((volatile unsigned int *) 0x80004388))
#define SCONESR   	  (*((volatile unsigned int *) 0x8000438C))
#define DAIESR0   	  (*((volatile unsigned int *) 0x80004390))
#define X14		   	  (*((volatile unsigned int *) 0x80004394))
#define DAOESR0   	  (*((volatile unsigned int *) 0x80004398))
#define DSSESR1   	  (*((volatile unsigned int *) 0x8000439C))
#define SAI1ESR   	  (*((volatile unsigned int *) 0x800043A0))
#define X15		   	  (*((volatile unsigned int *) 0x800043A4))
#define X16		   	  (*((volatile unsigned int *) 0x800043A8))
#define SAI4ESR	   	  (*((volatile unsigned int *) 0x800043AC))
#define SAO1ESR	   	  (*((volatile unsigned int *) 0x800043B0))
#define SAO2ESR	   	  (*((volatile unsigned int *) 0x800043B4))
#define X17		   	  (*((volatile unsigned int *) 0x800043B8))
#define DDACESR0   	  (*((volatile unsigned int *) 0x800043BC))
#define EDGEESR	   	  (*((volatile unsigned int *) 0x800043C0))
#define DADCESR0   	  (*((volatile unsigned int *) 0x800043C4))
#define UARTESR1   	  (*((volatile unsigned int *) 0x800043C8))
#define DDACESR1   	  (*((volatile unsigned int *) 0x800043CC))
#define DDACESR2   	  (*((volatile unsigned int *) 0x800043D0))
#define DADCESR1   	  (*((volatile unsigned int *) 0x800043D4))
#define DADCESR2   	  (*((volatile unsigned int *) 0x800043D8))
#define DAIESR1   	  (*((volatile unsigned int *) 0x800043DC))
#define DAIESR2   	  (*((volatile unsigned int *) 0x800043E0))
#define DAOESR1   	  (*((volatile unsigned int *) 0x800043E4))
#define DAOESR2   	  (*((volatile unsigned int *) 0x800043E8))
#define DAOESR3   	  (*((volatile unsigned int *) 0x800043EC))

/* Software Reset  */
#define APB0RES   	  (*((volatile unsigned int *) 0x80004C18))
#define APB0RES2   	  (*((volatile unsigned int *) 0x80004C1C))
#define APB1RES   	  (*((volatile unsigned int *) 0x80004C20))
#define APB1RES2   	  (*((volatile unsigned int *) 0x80004C24))
#define APB2RES   	  (*((volatile unsigned int *) 0x80004C28))
#define APB3RES   	  (*((volatile unsigned int *) 0x80004C2C))
#define APB3RES2  	  (*((volatile unsigned int *) 0x80004C30))
#define MMIORES   	  (*((volatile unsigned int *) 0x80004C34))
#define AHB0RES  	  (*((volatile unsigned int *) 0x80004C38))
#define T0RES   	  (*((volatile unsigned int *) 0x80004C3C))
#define T1RES   	  (*((volatile unsigned int *) 0x80004C40))
#define MCIRES   	  (*((volatile unsigned int *) 0x80004C44))
#define MCIRES2  	  (*((volatile unsigned int *) 0x80004C48))
#define UARTRES   	  (*((volatile unsigned int *) 0x80004C4C))
#define I2CRES   	  (*((volatile unsigned int *) 0x80004C50))
#define SCONRES   	  (*((volatile unsigned int *) 0x80004C58))
#define DAIRES   	  (*((volatile unsigned int *) 0x80004C60))
#define DAORES   	  (*((volatile unsigned int *) 0x80004C68))
#define DADCRES   	  (*((volatile unsigned int *) 0x80004C6C))
#define EDGERES   	  (*((volatile unsigned int *) 0x80004C70))
#define DDACRES   	  (*((volatile unsigned int *) 0x80004C74))
#define SAI1RES   	  (*((volatile unsigned int *) 0x80004C78))
#define SAI4RES   	  (*((volatile unsigned int *) 0x80004C84))
#define SAO1RES   	  (*((volatile unsigned int *) 0x80004C88))
#define SAO2RES   	  (*((volatile unsigned int *) 0x80004C8C))
#define FLSHRES   	  (*((volatile unsigned int *) 0x80004C94))
#define LCDRES   	  (*((volatile unsigned int *) 0x80004C98))
#define DMARES   	  (*((volatile unsigned int *) 0x80004C9C))
#define USBRES   	  (*((volatile unsigned int *) 0x80004CA0))
#define EMCRES   	  (*((volatile unsigned int *) 0x80004CA4))
#define MMIORES2   	  (*((volatile unsigned int *) 0x80004CA8))
/* -------------------------------------- */

/* External Memory Controller (EMC) */
#define EMC_BASE_ADDR		0x80008000
#define EMC_CTRL       (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x000))
#define EMC_STAT       (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x004))
#define EMC_CONFIG     (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x008))

/* Dynamic RAM access registers */
#define EMC_DYN_CTRL     (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x020))
#define EMC_DYN_RFSH     (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x024))
#define EMC_DYN_RD_CFG   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x028))
#define EMC_DYN_RP       (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x030))
#define EMC_DYN_RAS      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x034))
#define EMC_DYN_SREX     (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x038))
#define EMC_DYN_APR      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x03C))
#define EMC_DYN_DAL      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x040))
#define EMC_DYN_WR       (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x044))
#define EMC_DYN_RC       (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x048))
#define EMC_DYN_RFC      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x04C))
#define EMC_DYN_XSR      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x050))
#define EMC_DYN_RRD      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x054))
#define EMC_DYN_MRD      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x058))

#define EMC_DYN_CFG0     (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x100))
#define EMC_DYN_RASCAS0  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x104))

/* static RAM access registers */
#define EMC_STA_CFG0      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x200))
#define EMC_STA_WAITWEN0  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x204))
#define EMC_STA_WAITOEN0  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x208))
#define EMC_STA_WAITRD0   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x20C))
#define EMC_STA_WAITPAGE0 (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x210))
#define EMC_STA_WAITWR0   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x214))
#define EMC_STA_WAITTURN0 (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x218))

#define EMC_STA_CFG1      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x220))
#define EMC_STA_WAITWEN1  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x224))
#define EMC_STA_WAITOEN1  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x228))
#define EMC_STA_WAITRD1   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x22C))
#define EMC_STA_WAITPAGE1 (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x230))
#define EMC_STA_WAITWR1   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x234))
#define EMC_STA_WAITTURN1 (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x238))

#define EMC_STA_CFG2      (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x240))
#define EMC_STA_WAITWEN2  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x244))
#define EMC_STA_WAITOEN2  (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x248))
#define EMC_STA_WAITRD2   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x24C))
#define EMC_STA_WAITPAGE2 (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x250))
#define EMC_STA_WAITWR2   (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x254))
#define EMC_STA_WAITTURN2 (*(volatile unsigned long *)(EMC_BASE_ADDR + 0x258))

/* Interrupt Controller */
#define INT_PRIOMASK0 	(*((volatile unsigned int *) 0x80300000))
#define INT_PRIOMASK1   (*((volatile unsigned int *) 0x80300004))
#define INT_VECTOR0     (*((volatile unsigned int *) 0x80300100))
#define INT_VECTOR1     (*((volatile unsigned int *) 0x80300104))
#define INT_PENDING     (*((volatile unsigned int *) 0x80300200))
#define INT_FEATURES    (*((volatile unsigned int *) 0x80300300))
#define INT_REQ1 	    (*((volatile unsigned int *) 0x80300404))
#define INT_REQ2        (*((volatile unsigned int *) 0x80300408))
#define INT_REQ3        (*((volatile unsigned int *) 0x8030040C))
#define INT_REQ4        (*((volatile unsigned int *) 0x80300410))
#define INT_REQ5        (*((volatile unsigned int *) 0x80300414))
#define INT_REQ6        (*((volatile unsigned int *) 0x80300418))
#define INT_REQ7        (*((volatile unsigned int *) 0x8030041C))
#define INT_REQ8        (*((volatile unsigned int *) 0x80300420))
#define INT_REQ9        (*((volatile unsigned int *) 0x80300424))
#define INT_REQ10       (*((volatile unsigned int *) 0x80300428))
#define INT_REQ11       (*((volatile unsigned int *) 0x8030042C))
#define INT_REQ12       (*((volatile unsigned int *) 0x80300430))
#define INT_REQ13       (*((volatile unsigned int *) 0x80300434))
#define INT_REQ14       (*((volatile unsigned int *) 0x80300438))
#define INT_REQ15       (*((volatile unsigned int *) 0x8030043C))
#define INT_REQ16       (*((volatile unsigned int *) 0x80300440))
#define INT_REQ17       (*((volatile unsigned int *) 0x80300444))
#define INT_REQ18       (*((volatile unsigned int *) 0x80300448))
#define INT_REQ19       (*((volatile unsigned int *) 0x8030044C))
#define INT_REQ20       (*((volatile unsigned int *) 0x80300450))
#define INT_REQ21       (*((volatile unsigned int *) 0x80300454))
#define INT_REQ22       (*((volatile unsigned int *) 0x80300458))
#define INT_REQ23       (*((volatile unsigned int *) 0x8030045C))
#define INT_REQ24       (*((volatile unsigned int *) 0x80300460))
#define INT_REQ25       (*((volatile unsigned int *) 0x80300464))
#define INT_REQ26       (*((volatile unsigned int *) 0x80300468))
#define INT_REQ27       (*((volatile unsigned int *) 0x8030046C))
#define INT_REQ28       (*((volatile unsigned int *) 0x80300470))
#define INT_REQ29       (*((volatile unsigned int *) 0x80300474))

/* ------- Event Router ------- */

/* Input Group 0 Registers */
#define EVAPR0     (*((volatile unsigned int *) 0x80000CC0))
#define EVATR0     (*((volatile unsigned int *) 0x80000CE0))
#define EVECLR0    (*((volatile unsigned int *) 0x80000C20))
#define EVESET0    (*((volatile unsigned int *) 0x80000C40))
#define EVRSR0     (*((volatile unsigned int *) 0x80000D20))
#define EVMASK0    (*((volatile unsigned int *) 0x80000C60))
#define EVMCLR0    (*((volatile unsigned int *) 0x80000C80))
#define EVMSET0    (*((volatile unsigned int *) 0x80000CA0))
#define EVPEND0    (*((volatile unsigned int *) 0x80000C00))

#define EVIOMK00   (*((volatile unsigned int *) 0x80001400))
#define EVIOMK10   (*((volatile unsigned int *) 0x80001420))
#define EVIOMK20   (*((volatile unsigned int *) 0x80001440))
#define EVIOMK30   (*((volatile unsigned int *) 0x80001460))
#define EVIOMK40   (*((volatile unsigned int *) 0x80001480))

#define EVIOMC00   (*((volatile unsigned int *) 0x80001800))
#define EVIOMC10   (*((volatile unsigned int *) 0x80001820))
#define EVIOMC20   (*((volatile unsigned int *) 0x80001840))
#define EVIOMC30   (*((volatile unsigned int *) 0x80001860))
#define EVIOMC40   (*((volatile unsigned int *) 0x80001880))

#define EVIOMS00   (*((volatile unsigned int *) 0x80001C00))
#define EVIOMS10   (*((volatile unsigned int *) 0x80001C20))
#define EVIOMS20   (*((volatile unsigned int *) 0x80001C40))
#define EVIOMS30   (*((volatile unsigned int *) 0x80001C60))
#define EVIOMS40   (*((volatile unsigned int *) 0x80001C80))

#define EVIOP00    (*((volatile unsigned int *) 0x80001000))
#define EVIOP10    (*((volatile unsigned int *) 0x80001020))
#define EVIOP20    (*((volatile unsigned int *) 0x80001040))
#define EVIOP30    (*((volatile unsigned int *) 0x80001060))
#define EVIOP40    (*((volatile unsigned int *) 0x80001080))

/* Input Group 1 Registers */

⌨️ 快捷键说明

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