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

📄 lpc288x.h

📁 nxp的LPC2888处理器的示例代码.
💻 H
📖 第 1 页 / 共 4 页
字号:
#define EVAPR1     (*((volatile unsigned int *) 0x80000CC4))
#define EVATR1     (*((volatile unsigned int *) 0x80000CE4))
#define EVECLR1    (*((volatile unsigned int *) 0x80000C24))
#define EVESET1    (*((volatile unsigned int *) 0x80000C44))
#define EVRSR1     (*((volatile unsigned int *) 0x80000D24))
#define EVMASK1    (*((volatile unsigned int *) 0x80000C64))
#define EVMCLR1    (*((volatile unsigned int *) 0x80000C84))
#define EVMSET1    (*((volatile unsigned int *) 0x80000CA4))
#define EVPEND1    (*((volatile unsigned int *) 0x80000C04))

#define EVIOMK01   (*((volatile unsigned int *) 0x80001404))
#define EVIOMK11   (*((volatile unsigned int *) 0x80001424))
#define EVIOMK21   (*((volatile unsigned int *) 0x80001444))
#define EVIOMK31   (*((volatile unsigned int *) 0x80001464))
#define EVIOMK41   (*((volatile unsigned int *) 0x80001484))

#define EVIOMC01   (*((volatile unsigned int *) 0x80001804))
#define EVIOMC11   (*((volatile unsigned int *) 0x80001824))
#define EVIOMC21   (*((volatile unsigned int *) 0x80001844))
#define EVIOMC31   (*((volatile unsigned int *) 0x80001864))
#define EVIOMC41   (*((volatile unsigned int *) 0x80001884))

#define EVIOMS01   (*((volatile unsigned int *) 0x80001C04))
#define EVIOMS11   (*((volatile unsigned int *) 0x80001C24))
#define EVIOMS21   (*((volatile unsigned int *) 0x80001C44))
#define EVIOMS31   (*((volatile unsigned int *) 0x80001C64))
#define EVIOMS41   (*((volatile unsigned int *) 0x80001C84))

#define EVIOP01    (*((volatile unsigned int *) 0x80001004))
#define EVIOP11    (*((volatile unsigned int *) 0x80001024))
#define EVIOP21    (*((volatile unsigned int *) 0x80001044))
#define EVIOP31    (*((volatile unsigned int *) 0x80001064))
#define EVIOP41    (*((volatile unsigned int *) 0x80001084))

/* Input Group 2 Registers */
#define EVAPR2     (*((volatile unsigned int *) 0x80000CC8))
#define EVATR2     (*((volatile unsigned int *) 0x80000CE8))
#define EVECLR2    (*((volatile unsigned int *) 0x80000C28))
#define EVESET2    (*((volatile unsigned int *) 0x80000C48))
#define EVRSR2     (*((volatile unsigned int *) 0x80000D28))
#define EVMASK2    (*((volatile unsigned int *) 0x80000C68))
#define EVMCLR2    (*((volatile unsigned int *) 0x80000C88))
#define EVMSET2    (*((volatile unsigned int *) 0x80000CA8))
#define EVPEND2    (*((volatile unsigned int *) 0x80000C08))

#define EVIOMK02   (*((volatile unsigned int *) 0x80001408))
#define EVIOMK12   (*((volatile unsigned int *) 0x80001428))
#define EVIOMK22   (*((volatile unsigned int *) 0x80001448))
#define EVIOMK32   (*((volatile unsigned int *) 0x80001468))
#define EVIOMK42   (*((volatile unsigned int *) 0x80001488))

#define EVIOMC02   (*((volatile unsigned int *) 0x80001808))
#define EVIOMC12   (*((volatile unsigned int *) 0x80001828))
#define EVIOMC22   (*((volatile unsigned int *) 0x80001848))
#define EVIOMC32   (*((volatile unsigned int *) 0x80001868))
#define EVIOMC42   (*((volatile unsigned int *) 0x80001888))

#define EVIOMS02   (*((volatile unsigned int *) 0x80001C08))
#define EVIOMS12   (*((volatile unsigned int *) 0x80001C28))
#define EVIOMS22   (*((volatile unsigned int *) 0x80001C48))
#define EVIOMS32   (*((volatile unsigned int *) 0x80001C68))
#define EVIOMS42   (*((volatile unsigned int *) 0x80001C88))

#define EVIOP02    (*((volatile unsigned int *) 0x80001008))
#define EVIOP12    (*((volatile unsigned int *) 0x80001028))
#define EVIOP22    (*((volatile unsigned int *) 0x80001048))
#define EVIOP32    (*((volatile unsigned int *) 0x80001068))
#define EVIOP42    (*((volatile unsigned int *) 0x80001088))

/* Input Group 3 Registers */
#define EVAPR3     (*((volatile unsigned int *) 0x80000CCC))
#define EVATR3     (*((volatile unsigned int *) 0x80000CEC))
#define EVECLR3    (*((volatile unsigned int *) 0x80000C2C))
#define EVESET3    (*((volatile unsigned int *) 0x80000C4C))
#define EVRSR3     (*((volatile unsigned int *) 0x80000D2C))
#define EVMASK3    (*((volatile unsigned int *) 0x80000C6C))
#define EVMCLR3    (*((volatile unsigned int *) 0x80000C8C))
#define EVMSET3    (*((volatile unsigned int *) 0x80000CAC))
#define EVPEND3    (*((volatile unsigned int *) 0x80000C0C))

#define EVIOMK03   (*((volatile unsigned int *) 0x8000140C))
#define EVIOMK13   (*((volatile unsigned int *) 0x8000142C))
#define EVIOMK23   (*((volatile unsigned int *) 0x8000144C))
#define EVIOMK33   (*((volatile unsigned int *) 0x8000146C))
#define EVIOMK43   (*((volatile unsigned int *) 0x8000148C))

#define EVIOMC03   (*((volatile unsigned int *) 0x8000180C))
#define EVIOMC13   (*((volatile unsigned int *) 0x8000182C))
#define EVIOMC23   (*((volatile unsigned int *) 0x8000184C))
#define EVIOMC33   (*((volatile unsigned int *) 0x8000186C))
#define EVIOMC43   (*((volatile unsigned int *) 0x8000188C))

#define EVIOMS03   (*((volatile unsigned int *) 0x80001C0C))
#define EVIOMS13   (*((volatile unsigned int *) 0x80001C2C))
#define EVIOMS23   (*((volatile unsigned int *) 0x80001C4C))
#define EVIOMS33   (*((volatile unsigned int *) 0x80001C6C))
#define EVIOMS43   (*((volatile unsigned int *) 0x80001C8C))

#define EVIOP03    (*((volatile unsigned int *) 0x8000100C))
#define EVIOP13    (*((volatile unsigned int *) 0x8000102C))
#define EVIOP23    (*((volatile unsigned int *) 0x8000104C))
#define EVIOP33    (*((volatile unsigned int *) 0x8000106C))
#define EVIOP43    (*((volatile unsigned int *) 0x8000108C))
/* -------------------------- */

/* Timer0 */
#define T0LOAD 	  (*((volatile unsigned int *) 0x80020000))
#define T0VALUE   (*((volatile unsigned int *) 0x80020004))
#define T0CTRL    (*((volatile unsigned int *) 0x80020008))
#define T0CLR     (*((volatile unsigned int *) 0x8002000C))

/* Timer1 */
#define T1LOAD 	  (*((volatile unsigned int *) 0x80020400))
#define T1VALUE   (*((volatile unsigned int *) 0x80020404))
#define T1CTRL    (*((volatile unsigned int *) 0x80020408))
#define T1CLR     (*((volatile unsigned int *) 0x8002040C))

/* Watchdog Timer */
#define WDT_SR    (*((volatile unsigned int *) 0x80002800))
#define WDT_TCR   (*((volatile unsigned int *) 0x80002804))
#define WDT_TC    (*((volatile unsigned int *) 0x80002808))
#define WDT_PR    (*((volatile unsigned int *) 0x8000280C))
#define WDT_MCR   (*((volatile unsigned int *) 0x80002814))
#define WDT_MR0   (*((volatile unsigned int *) 0x80002818))
#define WDT_MR1   (*((volatile unsigned int *) 0x8000281C))
#define WDT_EMR   (*((volatile unsigned int *) 0x8000283C))

/* Real Time Clock */
#define RTC_BASE_ADDR		0x80002000
#define RTC_CFG         (*((volatile unsigned int *) 0x80005024))
#define RTC_ILR         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x00))
#define RTC_CTC         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x04))
#define RTC_CCR         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x08))
#define RTC_CIIR        (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x0C))
#define RTC_AMR         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x10))
#define RTC_CTIME0      (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x14))
#define RTC_CTIME1      (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x18))
#define RTC_CTIME2      (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x1C))
#define RTC_SEC         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x20))
#define RTC_MIN         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x24))
#define RTC_HOUR        (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x28))
#define RTC_DOM         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x2C))
#define RTC_DOW         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x30))
#define RTC_DOY         (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x34))
#define RTC_MONTH       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x38))
#define RTC_YEAR        (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x3C))
#define RTC_CISS        (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x40))
#define RTC_ALSEC       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x60))
#define RTC_ALMIN       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x64))
#define RTC_ALHOUR      (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x68))
#define RTC_ALDOM       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x6C))
#define RTC_ALDOW       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x70))
#define RTC_ALDOY       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x74))
#define RTC_ALMON       (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x78))
#define RTC_ALYEAR      (*(volatile unsigned long *)(RTC_BASE_ADDR + 0x7C))

/* UART */
#define UART_RBR   (*((volatile unsigned int *) 0x80101000))
#define UART_THR   (*((volatile unsigned int *) 0x80101000))
#define UART_DLL   (*((volatile unsigned int *) 0x80101000))
#define UART_IER   (*((volatile unsigned int *) 0x80101004))
#define UART_DLM   (*((volatile unsigned int *) 0x80101004))
#define UART_IIR   (*((volatile unsigned int *) 0x80101008))
#define UART_FCR   (*((volatile unsigned int *) 0x80101008))
#define UART_LCR   (*((volatile unsigned int *) 0x8010100c))
#define UART_MCR   (*((volatile unsigned int *) 0x80101010))
#define UART_LSR   (*((volatile unsigned int *) 0x80101014))
#define UART_MSR   (*((volatile unsigned int *) 0x80101018))
#define UART_SCR   (*((volatile unsigned int *) 0x8010101c))
#define UART_ACR   (*((volatile unsigned int *) 0x80101020))
#define UART_ICR   (*((volatile unsigned int *) 0x80101024))
#define UART_FDR   (*((volatile unsigned int *) 0x80101028))
#define UART_POP   (*((volatile unsigned int *) 0x80101030))
#define UART_MODE  (*((volatile unsigned int *) 0x80101034))
#define UART_CFG   (*((volatile unsigned int *) 0x80101FD4))
#define UART_INTCE (*((volatile unsigned int *) 0x80101FD8))
#define UART_INTSE (*((volatile unsigned int *) 0x80101FDC))
#define UART_INTS  (*((volatile unsigned int *) 0x80101FE0))
#define UART_INTE  (*((volatile unsigned int *) 0x80101FE4))
#define UART_INTCS (*((volatile unsigned int *) 0x80101FE8))
#define UART_INTSS (*((volatile unsigned int *) 0x80101FEC))

/* GPDMA  */
#define DMA0Source  	(*((volatile unsigned int *) 0x80103800))
#define DMA0Dest	  	(*((volatile unsigned int *) 0x80103804))
#define DMA0Length  	(*((volatile unsigned int *) 0x80103808))
#define DMA0Config	 	(*((volatile unsigned int *) 0x8010380C))
#define DMA0Enab	  	(*((volatile unsigned int *) 0x80103810))
#define DMA0Count	  	(*((volatile unsigned int *) 0x8010381C))

#define DMA1Source  	(*((volatile unsigned int *) 0x80103820))
#define DMA1Dest	  	(*((volatile unsigned int *) 0x80103824))
#define DMA1Length  	(*((volatile unsigned int *) 0x80103828))
#define DMA1Config	 	(*((volatile unsigned int *) 0x8010382C))
#define DMA1Enab	  	(*((volatile unsigned int *) 0x80103830))
#define DMA1Count	  	(*((volatile unsigned int *) 0x8010383C))

#define DMA2Source  	(*((volatile unsigned int *) 0x80103840))
#define DMA2Dest	  	(*((volatile unsigned int *) 0x80103844))
#define DMA2Length  	(*((volatile unsigned int *) 0x80103848))
#define DMA2Config	 	(*((volatile unsigned int *) 0x8010384C))
#define DMA2Enab	  	(*((volatile unsigned int *) 0x80103850))
#define DMA2Count	  	(*((volatile unsigned int *) 0x8010385C))

#define DMA3Source  	(*((volatile unsigned int *) 0x80103860))
#define DMA3Dest	  	(*((volatile unsigned int *) 0x80103864))
#define DMA3Length  	(*((volatile unsigned int *) 0x80103868))
#define DMA3Config	 	(*((volatile unsigned int *) 0x8010386C))
#define DMA3Enab	  	(*((volatile unsigned int *) 0x80103870))
#define DMA3Count	  	(*((volatile unsigned int *) 0x8010387C))

#define DMA4Source  	(*((volatile unsigned int *) 0x80103880))
#define DMA4Dest	  	(*((volatile unsigned int *) 0x80103884))
#define DMA4Length  	(*((volatile unsigned int *) 0x80103888))
#define DMA4Config	 	(*((volatile unsigned int *) 0x8010388C))
#define DMA4Enab	  	(*((volatile unsigned int *) 0x80103890))
#define DMA4Count	  	(*((volatile unsigned int *) 0x8010389C))

#define DMA5Source  	(*((volatile unsigned int *) 0x801038A0))
#define DMA5Dest	  	(*((volatile unsigned int *) 0x801038A4))
#define DMA5Length  	(*((volatile unsigned int *) 0x801038A8))
#define DMA5Config	 	(*((volatile unsigned int *) 0x801038AC))
#define DMA5Enab	  	(*((volatile unsigned int *) 0x801038B0))
#define DMA5Count	  	(*((volatile unsigned int *) 0x801038BC))

#define DMA6Source  	(*((volatile unsigned int *) 0x801038C0))
#define DMA6Dest	  	(*((volatile unsigned int *) 0x801038C4))
#define DMA6Length  	(*((volatile unsigned int *) 0x801038C8))
#define DMA6Config	 	(*((volatile unsigned int *) 0x801038CC))
#define DMA6Enab	  	(*((volatile unsigned int *) 0x801038D0))
#define DMA6Count	  	(*((volatile unsigned int *) 0x801038DC))

#define DMA7Source  	(*((volatile unsigned int *) 0x801038E0))
#define DMA7Dest	  	(*((volatile unsigned int *) 0x801038E4))
#define DMA7Length  	(*((volatile unsigned int *) 0x801038E8))
#define DMA7Config	 	(*((volatile unsigned int *) 0x801038EC))
#define DMA7Enab	  	(*((volatile unsigned int *) 0x801038F0))
#define DMA7Count	  	(*((volatile unsigned int *) 0x801038FC))

#define DMA0AltSource  		(*((volatile unsigned int *) 0x80103A00))
#define DMA0AltDest	  		(*((volatile unsigned int *) 0x80103A04))
#define DMA0AltLength  		(*((volatile unsigned int *) 0x80103A08))
#define DMA0AltConfig	 	(*((volatile unsigned int *) 0x80103A0C))

#define DMA1AltSource  		(*((volatile unsigned int *) 0x80103A10))
#define DMA1AltDest	  		(*((volatile unsigned int *) 0x80103A14))
#define DMA1AltLength  		(*((volatile unsigned int *) 0x80103A18))
#define DMA1AltConfig	 	(*((volatile unsigned int *) 0x80103A1C))

#define DMA2AltSource  		(*((volatile unsigned int *) 0x80103A20))
#define DMA2AltDest	  		(*((volatile unsigned int *) 0x80103A24))
#define DMA2AltLength  		(*((volatile unsigned int *) 0x80103A28))
#define DMA2AltConfig	 	(*((volatile unsigned int *) 0x80103A2C))

#define DMA3AltSource  		(*((volatile unsigned int *) 0x80103A30))
#define DMA3AltDest	  		(*((volatile unsigned int *) 0x80103A34))
#define DMA3AltLength  		(*((volatile unsigned int *) 0x80103A38))
#define DMA3AltConfig	 	(*((volatile unsigned int *) 0x80103A3C))

#define DMA4AltSource  		(*((volatile unsigned int *) 0x80103A40))
#define DMA4AltDest	  		(*((volatile unsigned int *) 0x80103A44))
#define DMA4AltLength  		(*((volatile unsigned int *) 0x80103A48))
#define DMA4AltConfig	 	(*((volatile unsigned int *) 0x80103A4C))

#define DMA5AltSource  		(*((volatile unsigned int *) 0x80103A50))
#define DMA5AltDest	  		(*((volatile unsigned int *) 0x80103A54))
#define DMA5AltLength  		(*((volatile unsigned int *) 0x80103A58))
#define DMA5AltConfig	 	(*((volatile unsigned int *) 0x80103A5C))

#define DMA6AltSource  		(*((volatile unsigned int *) 0x80103A60))
#define DMA6AltDest	  		(*((volatile unsigned int *) 0x80103A64))
#define DMA6AltLength  		(*((volatile unsigned int *) 0x80103A68))

⌨️ 快捷键说明

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