?? lpc2294.h
字號:
#define CAN5RDB (*((volatile unsigned char *) 0xE005402C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TFI1 (*((volatile unsigned char *) 0xE0054030)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TID1 (*((volatile unsigned char *) 0xE0054034)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TDA1 (*((volatile unsigned char *) 0xE0054038)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TDB1 (*((volatile unsigned char *) 0xE005403C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TFI2 (*((volatile unsigned char *) 0xE0054040)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TID2 (*((volatile unsigned char *) 0xE0054044)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TDA2 (*((volatile unsigned char *) 0xE0054048)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TDB2 (*((volatile unsigned char *) 0xE005404C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TFI3 (*((volatile unsigned char *) 0xE0054050)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TID3 (*((volatile unsigned char *) 0xE0054054)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TDA3 (*((volatile unsigned char *) 0xE0054058)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5TDB3 (*((volatile unsigned char *) 0xE005405C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN6MOD (*((volatile unsigned char *) 0xE0058000)) /* lpc2292\lpc2294 only */
#define CAN6CMR (*((volatile unsigned char *) 0xE0058004)) /* lpc2292\lpc2294 only */
#define CAN6GSR (*((volatile unsigned char *) 0xE0058008)) /* lpc2292\lpc2294 only */
#define CAN6ICR (*((volatile unsigned char *) 0xE005800C)) /* lpc2292\lpc2294 only */
#define CAN6IER (*((volatile unsigned char *) 0xE0058010)) /* lpc2292\lpc2294 only */
#define CAN6BTR (*((volatile unsigned char *) 0xE0058014)) /* lpc2292\lpc2294 only */
#define CAN6EWL (*((volatile unsigned char *) 0xE005801C)) /* lpc2292\lpc2294 only */
#define CAN6SR (*((volatile unsigned char *) 0xE0058020)) /* lpc2292\lpc2294 only */
#define CAN6RFS (*((volatile unsigned char *) 0xE0058024)) /* lpc2292\lpc2294 only */
#define CAN6RDA (*((volatile unsigned char *) 0xE0058028)) /* lpc2292\lpc2294 only */
#define CAN6RDB (*((volatile unsigned char *) 0xE005802C)) /* lpc2292\lpc2294 only */
#define CAN6TFI1 (*((volatile unsigned char *) 0xE0058030)) /* lpc2292\lpc2294 only */
#define CAN6TID1 (*((volatile unsigned char *) 0xE0058034)) /* lpc2292\lpc2294 only */
#define CAN6TDA1 (*((volatile unsigned char *) 0xE0058038)) /* lpc2292\lpc2294 only */
#define CAN6TDB1 (*((volatile unsigned char *) 0xE005803C)) /* lpc2292\lpc2294 only */
#define CAN6TFI2 (*((volatile unsigned char *) 0xE0058040)) /* lpc2292\lpc2294 only */
#define CAN6TID2 (*((volatile unsigned char *) 0xE0058044)) /* lpc2292\lpc2294 only */
#define CAN6TDA2 (*((volatile unsigned char *) 0xE0058048)) /* lpc2292\lpc2294 only */
#define CAN6TDB2 (*((volatile unsigned char *) 0xE005804C)) /* lpc2292\lpc2294 only */
#define CAN6TFI3 (*((volatile unsigned char *) 0xE0058050)) /* lpc2292\lpc2294 only */
#define CAN6TID3 (*((volatile unsigned char *) 0xE0058054)) /* lpc2292\lpc2294 only */
#define CAN6TDA3 (*((volatile unsigned char *) 0xE0058058)) /* lpc2292\lpc2294 only */
#define CAN6TDB3 (*((volatile unsigned char *) 0xE005805C)) /* lpc2292\lpc2294 only */
#define CANTxSR (*((volatile unsigned char *) 0xE0040000)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANRxSR (*((volatile unsigned char *) 0xE0040004)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANMSR (*((volatile unsigned char *) 0xE0040008)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANAFMR (*((volatile unsigned char *) 0xE003C000)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANSFF_sa (*((volatile unsigned char *) 0xE003C004)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANSFF_GRP_sa (*((volatile unsigned char *) 0xE003C008)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANEFF_sa (*((volatile unsigned char *) 0xE003C00C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANEFF_GRP_sa (*((volatile unsigned char *) 0xE003C010)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANENDofTable (*((volatile unsigned char *) 0xE003C014)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANLUTerrAd (*((volatile unsigned char *) 0xE003C018)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CANLUTerr (*((volatile unsigned char *) 0xE003C01C)) /* lpc2119\lpc2129\lpc2292\lpc2294 only */
/* Timer 0 */
/* 定時器0的特殊寄存器 */
#define T0IR (*((volatile unsigned long *) 0xE0004000))
#define T0TCR (*((volatile unsigned long *) 0xE0004004))
#define T0TC (*((volatile unsigned long *) 0xE0004008))
#define T0PR (*((volatile unsigned long *) 0xE000400C))
#define T0PC (*((volatile unsigned long *) 0xE0004010))
#define T0MCR (*((volatile unsigned long *) 0xE0004014))
#define T0MR0 (*((volatile unsigned long *) 0xE0004018))
#define T0MR1 (*((volatile unsigned long *) 0xE000401C))
#define T0MR2 (*((volatile unsigned long *) 0xE0004020))
#define T0MR3 (*((volatile unsigned long *) 0xE0004024))
#define T0CCR (*((volatile unsigned long *) 0xE0004028))
#define T0CR0 (*((volatile unsigned long *) 0xE000402C))
#define T0CR1 (*((volatile unsigned long *) 0xE0004030))
#define T0CR2 (*((volatile unsigned long *) 0xE0004034))
#define T0CR3 (*((volatile unsigned long *) 0xE0004038))
#define T0EMR (*((volatile unsigned long *) 0xE000403C))
// 為LPC213x增加定時器0計數控制器 2005-02-22
#define T0CTCR (*((volatile unsigned long *) 0xE0004070))
/* Timer 1 */
/* 定時器1的特殊寄存器 */
#define T1IR (*((volatile unsigned long *) 0xE0008000))
#define T1TCR (*((volatile unsigned long *) 0xE0008004))
#define T1TC (*((volatile unsigned long *) 0xE0008008))
#define T1PR (*((volatile unsigned long *) 0xE000800C))
#define T1PC (*((volatile unsigned long *) 0xE0008010))
#define T1MCR (*((volatile unsigned long *) 0xE0008014))
#define T1MR0 (*((volatile unsigned long *) 0xE0008018))
#define T1MR1 (*((volatile unsigned long *) 0xE000801C))
#define T1MR2 (*((volatile unsigned long *) 0xE0008020))
#define T1MR3 (*((volatile unsigned long *) 0xE0008024))
#define T1CCR (*((volatile unsigned long *) 0xE0008028))
#define T1CR0 (*((volatile unsigned long *) 0xE000802C))
#define T1CR1 (*((volatile unsigned long *) 0xE0008030))
#define T1CR2 (*((volatile unsigned long *) 0xE0008034))
#define T1CR3 (*((volatile unsigned long *) 0xE0008038))
#define T1EMR (*((volatile unsigned long *) 0xE000803C))
// 為LPC213x增加定時器1計數控制器 2005-02-22
#define T1CTCR (*((volatile unsigned long *) 0xE0008070))
/* Pulse Width Modulator (PWM) */
/* 脈寬調制器的特殊寄存器 */
#define PWMIR (*((volatile unsigned long *) 0xE0014000))
#define PWMTCR (*((volatile unsigned long *) 0xE0014004))
#define PWMTC (*((volatile unsigned long *) 0xE0014008))
#define PWMPR (*((volatile unsigned long *) 0xE001400C))
#define PWMPC (*((volatile unsigned long *) 0xE0014010))
#define PWMMCR (*((volatile unsigned long *) 0xE0014014))
#define PWMMR0 (*((volatile unsigned long *) 0xE0014018))
#define PWMMR1 (*((volatile unsigned long *) 0xE001401C))
#define PWMMR2 (*((volatile unsigned long *) 0xE0014020))
#define PWMMR3 (*((volatile unsigned long *) 0xE0014024))
#define PWMMR4 (*((volatile unsigned long *) 0xE0014040))
#define PWMMR5 (*((volatile unsigned long *) 0xE0014044))
#define PWMMR6 (*((volatile unsigned long *) 0xE0014048))
#define PWMPCR (*((volatile unsigned long *) 0xE001404C))
#define PWMLER (*((volatile unsigned long *) 0xE0014050))
/* A/D CONVERTER */
/* A/D轉換器 */
#define ADCR (*((volatile unsigned long *) 0xE0034000)) /* no in lpc210x*/
#define ADDR (*((volatile unsigned long *) 0xE0034004)) /* no in lpc210x*/
/* for lpc2138 */
#define AD0CR (*((volatile unsigned long *) 0xE0034000))
#define AD0DR (*((volatile unsigned long *) 0xE0034004))
#define ADGSM (*((volatile unsigned long *) 0xE0034008))
#define AD1CR (*((volatile unsigned long *) 0xE0060000))
#define AD1DR (*((volatile unsigned long *) 0xE0060004))
/* D/A CONVERTER */
/* D/A轉換器 */
#define DACR (*((volatile unsigned long *) 0xE006C000)) /* lpc2138 only */
/* Real Time Clock */
/* 實時時鐘的特殊寄存器 */
#define ILR (*((volatile unsigned char *) 0xE0024000))
#define CTC (*((volatile unsigned short*) 0xE0024004))
#define CCR (*((volatile unsigned char *) 0xE0024008))
#define CIIR (*((volatile unsigned char *) 0xE002400C))
#define AMR (*((volatile unsigned char *) 0xE0024010))
#define CTIME0 (*((volatile unsigned long *) 0xE0024014))
#define CTIME1 (*((volatile unsigned long *) 0xE0024018))
#define CTIME2 (*((volatile unsigned long *) 0xE002401C))
#define SEC (*((volatile unsigned char *) 0xE0024020))
#define MIN (*((volatile unsigned char *) 0xE0024024))
#define HOUR (*((volatile unsigned char *) 0xE0024028))
#define DOM (*((volatile unsigned char *) 0xE002402C))
#define DOW (*((volatile unsigned char *) 0xE0024030))
#define DOY (*((volatile unsigned short*) 0xE0024034))
#define MONTH (*((volatile unsigned char *) 0xE0024038))
#define YEAR (*((volatile unsigned short*) 0xE002403C))
#define ALSEC (*((volatile unsigned char *) 0xE0024060))
#define ALMIN (*((volatile unsigned char *) 0xE0024064))
#define ALHOUR (*((volatile unsigned char *) 0xE0024068))
#define ALDOM (*((volatile unsigned char *) 0xE002406C))
#define ALDOW (*((volatile unsigned char *) 0xE0024070))
#define ALDOY (*((volatile unsigned short*) 0xE0024074))
#define ALMON (*((volatile unsigned char *) 0xE0024078))
#define ALYEAR (*((volatile unsigned short*) 0xE002407C))
#define PREINT (*((volatile unsigned short*) 0xE0024080))
#define PREFRAC (*((volatile unsigned short*) 0xE0024084))
/* Watchdog */
/* 看門狗的特殊寄存器 */
#define WDMOD (*((volatile unsigned char *) 0xE0000000))
#define WDTC (*((volatile unsigned long *) 0xE0000004))
#define WDFEED (*((volatile unsigned char *) 0xE0000008))
#define WDTV (*((volatile unsigned long *) 0xE000000C))
/* Define firmware Functions */
/* 定義固件函數 */
#define rm_init_entry() ((void (*)())(0x7fffff91))()
#define rm_undef_handler() ((void (*)())(0x7fffffa0))()
#define rm_prefetchabort_handler() ((void (*)())(0x7fffffb0))()
#define rm_dataabort_handler() ((void (*)())(0x7fffffc0))()
#define rm_irqhandler() ((void (*)())(0x7fffffd0))()
#define rm_irqhandler2() ((void (*)())(0x7fffffe0))()
#define iap_entry(a, b) ((void (*)())(0x7ffffff1))(a, b)
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -