📄 nxp_arm.h
字号:
#define rCAN5TID2 (*((volatile unsigned char *) 0xE0054044)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN5TDA2 (*((volatile unsigned char *) 0xE0054048)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN5TDB2 (*((volatile unsigned char *) 0xE005404C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN5TFI3 (*((volatile unsigned char *) 0xE0054050)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN5TID3 (*((volatile unsigned char *) 0xE0054054)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN5TDA3 (*((volatile unsigned char *) 0xE0054058)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN5TDB3 (*((volatile unsigned char *) 0xE005405C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCAN6MOD (*((volatile unsigned char *) 0xE0058000)) /* lpc2292\lpc2294 only */
#define rCAN6CMR (*((volatile unsigned char *) 0xE0058004)) /* lpc2292\lpc2294 only */
#define rCAN6GSR (*((volatile unsigned char *) 0xE0058008)) /* lpc2292\lpc2294 only */
#define rCAN6ICR (*((volatile unsigned char *) 0xE005800C)) /* lpc2292\lpc2294 only */
#define rCAN6IER (*((volatile unsigned char *) 0xE0058010)) /* lpc2292\lpc2294 only */
#define rCAN6BTR (*((volatile unsigned char *) 0xE0058014)) /* lpc2292\lpc2294 only */
#define rCAN6EWL (*((volatile unsigned char *) 0xE005801C)) /* lpc2292\lpc2294 only */
#define rCAN6SR (*((volatile unsigned char *) 0xE0058020)) /* lpc2292\lpc2294 only */
#define rCAN6RFS (*((volatile unsigned char *) 0xE0058024)) /* lpc2292\lpc2294 only */
#define rCAN6RDA (*((volatile unsigned char *) 0xE0058028)) /* lpc2292\lpc2294 only */
#define rCAN6RDB (*((volatile unsigned char *) 0xE005802C)) /* lpc2292\lpc2294 only */
#define rCAN6TFI1 (*((volatile unsigned char *) 0xE0058030)) /* lpc2292\lpc2294 only */
#define rCAN6TID1 (*((volatile unsigned char *) 0xE0058034)) /* lpc2292\lpc2294 only */
#define rCAN6TDA1 (*((volatile unsigned char *) 0xE0058038)) /* lpc2292\lpc2294 only */
#define rCAN6TDB1 (*((volatile unsigned char *) 0xE005803C)) /* lpc2292\lpc2294 only */
#define rCAN6TFI2 (*((volatile unsigned char *) 0xE0058040)) /* lpc2292\lpc2294 only */
#define rCAN6TID2 (*((volatile unsigned char *) 0xE0058044)) /* lpc2292\lpc2294 only */
#define rCAN6TDA2 (*((volatile unsigned char *) 0xE0058048)) /* lpc2292\lpc2294 only */
#define rCAN6TDB2 (*((volatile unsigned char *) 0xE005804C)) /* lpc2292\lpc2294 only */
#define rCAN6TFI3 (*((volatile unsigned char *) 0xE0058050)) /* lpc2292\lpc2294 only */
#define rCAN6TID3 (*((volatile unsigned char *) 0xE0058054)) /* lpc2292\lpc2294 only */
#define rCAN6TDA3 (*((volatile unsigned char *) 0xE0058058)) /* lpc2292\lpc2294 only */
#define rCAN6TDB3 (*((volatile unsigned char *) 0xE005805C)) /* lpc2292\lpc2294 only */
#define rCANTxSR (*((volatile unsigned char *) 0xE0040000)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANRxSR (*((volatile unsigned char *) 0xE0040004)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANMSR (*((volatile unsigned char *) 0xE0040008)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANAFMR (*((volatile unsigned char *) 0xE003C000)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANSFF_sa (*((volatile unsigned char *) 0xE003C004)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANSFF_GRP_sa (*((volatile unsigned char *) 0xE003C008)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANEFF_sa (*((volatile unsigned char *) 0xE003C00C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANEFF_GRP_sa (*((volatile unsigned char *) 0xE003C010)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANENDofTable (*((volatile unsigned char *) 0xE003C014)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANLUTerrAd (*((volatile unsigned char *) 0xE003C018)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define rCANLUTerr (*((volatile unsigned char *) 0xE003C01C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
/* Timer 0 */
/* 定时器0的特殊寄存器 */
#define rT0IR (*((volatile unsigned long *) 0xE0004000))
#define rT0TCR (*((volatile unsigned long *) 0xE0004004))
#define rT0TC (*((volatile unsigned long *) 0xE0004008))
#define rT0PR (*((volatile unsigned long *) 0xE000400C))
#define rT0PC (*((volatile unsigned long *) 0xE0004010))
#define rT0MCR (*((volatile unsigned long *) 0xE0004014))
#define rT0MR0 (*((volatile unsigned long *) 0xE0004018))
#define rT0MR1 (*((volatile unsigned long *) 0xE000401C))
#define rT0MR2 (*((volatile unsigned long *) 0xE0004020))
#define rT0MR3 (*((volatile unsigned long *) 0xE0004024))
#define rT0CCR (*((volatile unsigned long *) 0xE0004028))
#define rT0CR0 (*((volatile unsigned long *) 0xE000402C))
#define rT0CR1 (*((volatile unsigned long *) 0xE0004030))
#define rT0CR2 (*((volatile unsigned long *) 0xE0004034))
#define rT0CR3 (*((volatile unsigned long *) 0xE0004038))
#define rT0EMR (*((volatile unsigned long *) 0xE000403C))
/* Timer 1 */
/* 定时器1的特殊寄存器 */
#define rT1IR (*((volatile unsigned long *) 0xE0008000))
#define rT1TCR (*((volatile unsigned long *) 0xE0008004))
#define rT1TC (*((volatile unsigned long *) 0xE0008008))
#define rT1PR (*((volatile unsigned long *) 0xE000800C))
#define rT1PC (*((volatile unsigned long *) 0xE0008010))
#define rT1MCR (*((volatile unsigned long *) 0xE0008014))
#define rT1MR0 (*((volatile unsigned long *) 0xE0008018))
#define rT1MR1 (*((volatile unsigned long *) 0xE000801C))
#define rT1MR2 (*((volatile unsigned long *) 0xE0008020))
#define rT1MR3 (*((volatile unsigned long *) 0xE0008024))
#define rT1CCR (*((volatile unsigned long *) 0xE0008028))
#define rT1CR0 (*((volatile unsigned long *) 0xE000802C))
#define rT1CR1 (*((volatile unsigned long *) 0xE0008030))
#define rT1CR2 (*((volatile unsigned long *) 0xE0008034))
#define rT1CR3 (*((volatile unsigned long *) 0xE0008038))
#define rT1EMR (*((volatile unsigned long *) 0xE000803C))
/* Pulse Width Modulator (PWM) */
/* 脉宽调制器的特殊寄存器 */
#define rPWMIR (*((volatile unsigned long *) 0xE0014000))
#define rPWMTCR (*((volatile unsigned long *) 0xE0014004))
#define rPWMTC (*((volatile unsigned long *) 0xE0014008))
#define rPWMPR (*((volatile unsigned long *) 0xE001400C))
#define rPWMPC (*((volatile unsigned long *) 0xE0014010))
#define rPWMMCR (*((volatile unsigned long *) 0xE0014014))
#define rPWMMR0 (*((volatile unsigned long *) 0xE0014018))
#define rPWMMR1 (*((volatile unsigned long *) 0xE001401C))
#define rPWMMR2 (*((volatile unsigned long *) 0xE0014020))
#define rPWMMR3 (*((volatile unsigned long *) 0xE0014024))
#define rPWMMR4 (*((volatile unsigned long *) 0xE0014040))
#define rPWMMR5 (*((volatile unsigned long *) 0xE0014044))
#define rPWMMR6 (*((volatile unsigned long *) 0xE0014048))
#define rPWMPCR (*((volatile unsigned long *) 0xE001404C))
#define rPWMLER (*((volatile unsigned long *) 0xE0014050))
/* A/D CONVERTER */
/* ADC特殊寄存器 */
#define rAD0CR (*((volatile unsigned int *) 0xE0034000)) /* no in lpc2104/2105/2106*/
#define rAD0GDR (*((volatile unsigned int *) 0xE0034004)) /* no in lpc2104/2105/2106*/
#define rAD0STAT (*((volatile unsigned int *) 0xE0034030)) /* lpc2103/2102/2101 only */
#define rAD0INTEN (*((volatile unsigned int *) 0xE003400C)) /* lpc2103/2102/2101 only */
#define rAD0DR0 (*((volatile unsigned int *) 0xE0034010)) /* lpc2103/2102/2101 only */
#define rAD0DR1 (*((volatile unsigned int *) 0xE0034014)) /* lpc2103/2102/2101 only */
#define rAD0DR2 (*((volatile unsigned int *) 0xE0034018)) /* lpc2103/2102/2101 only */
#define rAD0DR3 (*((volatile unsigned int *) 0xE003401C)) /* lpc2103/2102/2101 only */
#define rAD0DR4 (*((volatile unsigned int *) 0xE0034020)) /* lpc2103/2102/2101 only */
#define rAD0DR5 (*((volatile unsigned int *) 0xE0034024)) /* lpc2103/2102/2101 only */
#define rAD0DR6 (*((volatile unsigned int *) 0xE0034028)) /* lpc2103/2102/2101 only */
#define rAD0DR7 (*((volatile unsigned int *) 0xE003402C)) /* lpc2103/2102/2101 only */
/* Real Time Clock */
/* 实时时钟的特殊寄存器 */
#define rILR (*((volatile unsigned char *) 0xE0024000))
#define rCTC (*((volatile unsigned short*) 0xE0024004))
#define rCCR (*((volatile unsigned char *) 0xE0024008))
#define rCIIR (*((volatile unsigned char *) 0xE002400C))
#define rAMR (*((volatile unsigned char *) 0xE0024010))
#define rCTIME0 (*((volatile unsigned long *) 0xE0024014))
#define rCTIME1 (*((volatile unsigned long *) 0xE0024018))
#define rCTIME2 (*((volatile unsigned long *) 0xE002401C))
#define rSEC (*((volatile unsigned char *) 0xE0024020))
#define rMIN (*((volatile unsigned char *) 0xE0024024))
#define rHOUR (*((volatile unsigned char *) 0xE0024028))
#define rDOM (*((volatile unsigned char *) 0xE002402C))
#define rDOW (*((volatile unsigned char *) 0xE0024030))
#define rDOY (*((volatile unsigned short*) 0xE0024034))
#define rMONTH (*((volatile unsigned char *) 0xE0024038))
#define rYEAR (*((volatile unsigned short*) 0xE002403C))
#define rALSEC (*((volatile unsigned char *) 0xE0024060))
#define rALMIN (*((volatile unsigned char *) 0xE0024064))
#define rALHOUR (*((volatile unsigned char *) 0xE0024068))
#define rALDOM (*((volatile unsigned char *) 0xE002406C))
#define rALDOW (*((volatile unsigned char *) 0xE0024070))
#define rALDOY (*((volatile unsigned short*) 0xE0024074))
#define rALMON (*((volatile unsigned char *) 0xE0024078))
#define rALYEAR (*((volatile unsigned short*) 0xE002407C))
#define rPREINT (*((volatile unsigned short*) 0xE0024080))
#define rPREFRAC (*((volatile unsigned short*) 0xE0024084))
/* Watchdog */
/* 看门狗的特殊寄存器 */
#define rWDMOD (*((volatile unsigned char *) 0xE0000000))
#define rWDTC (*((volatile unsigned long *) 0xE0000004))
#define rWDFEED (*((volatile unsigned char *) 0xE0000008))
#define rWDTV (*((volatile unsigned long *) 0xE000000C))
/* ISR */
#define _ISR_STARTADDRESS BaseOfROM
#define pISR_RESET (*(unsigned int *)(_ISR_STARTADDRESS+0x0))
#define pISR_UNDEF (*(unsigned int *)(_ISR_STARTADDRESS+0x4))
#define pISR_SWI (*(unsigned int *)(_ISR_STARTADDRESS+0x8))
#define pISR_PABORT (*(unsigned int *)(_ISR_STARTADDRESS+0xc))
#define pISR_DABORT (*(unsigned int *)(_ISR_STARTADDRESS+0x10))
#define pISR_RESERVED (*(unsigned int *)(_ISR_STARTADDRESS+0x14))
#define pISR_IRQ (*(unsigned int *)(_ISR_STARTADDRESS+0x18))
#define pISR_FIQ (*(unsigned int *)(_ISR_STARTADDRESS+0x1c))
/* PENDING BIT */
#define BIT_ADC (1<<18)
#define BIT_EINT3 (1<<17)
#define BIT_EINT2 (1<<16)
#define BIT_EINT1 (1<<15)
#define BIT_EINT0 (1<<14)
#define BIT_RTC (1<<13)
#define BIT_PLL (1<<12)
#define BIT_SPI1_SSP (1<<11)
#define BIT_SPI0 (1<<10)
#define BIT_I2C (1<<9)
#define BIT_PWM (1<<8)
#define BIT_UART1 (1<<7)
#define BIT_UART0 (1<<6)
#define BIT_TIMER1 (1<<5)
#define BIT_TIMER0 (1<<4)
#define BIT_ARMCore1 (1<<3)
#define BIT_ARMCore2 (1<<2)
#define BIT_SoftInt (1<<1)
#define BIT_WDT 0x1
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -