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

📄 lpc.h

📁 skyeye是一个可以模拟嵌入式硬件开发板的系统软件
💻 H
📖 第 1 页 / 共 3 页
字号:
#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 int *) 0xE0004000))#define T0TCR           (*((volatile unsigned int *) 0xE0004004))#define T0TC            (*((volatile unsigned int *) 0xE0004008))#define T0PR            (*((volatile unsigned int *) 0xE000400C))#define T0PC            (*((volatile unsigned int *) 0xE0004010))#define T0MCR           (*((volatile unsigned int *) 0xE0004014))#define T0MR0           (*((volatile unsigned int *) 0xE0004018))#define T0MR1           (*((volatile unsigned int *) 0xE000401C))#define T0MR2           (*((volatile unsigned int *) 0xE0004020))#define T0MR3           (*((volatile unsigned int *) 0xE0004024))#define T0CCR           (*((volatile unsigned int *) 0xE0004028))#define T0CR0           (*((volatile unsigned int *) 0xE000402C))#define T0CR1           (*((volatile unsigned int *) 0xE0004030))#define T0CR2           (*((volatile unsigned int *) 0xE0004034))#define T0CR3           (*((volatile unsigned int *) 0xE0004038))#define T0EMR           (*((volatile unsigned int *) 0xE000403C))/* Timer 1 *//* 定时器1的特殊寄存器 */#define T1IR            (*((volatile unsigned int *) 0xE0008000))#define T1TCR           (*((volatile unsigned int *) 0xE0008004))#define T1TC            (*((volatile unsigned int *) 0xE0008008))#define T1PR            (*((volatile unsigned int *) 0xE000800C))#define T1PC            (*((volatile unsigned int *) 0xE0008010))#define T1MCR           (*((volatile unsigned int *) 0xE0008014))#define T1MR0           (*((volatile unsigned int *) 0xE0008018))#define T1MR1           (*((volatile unsigned int *) 0xE000801C))#define T1MR2           (*((volatile unsigned int *) 0xE0008020))#define T1MR3           (*((volatile unsigned int *) 0xE0008024))#define T1CCR           (*((volatile unsigned int *) 0xE0008028))#define T1CR0           (*((volatile unsigned int *) 0xE000802C))#define T1CR1           (*((volatile unsigned int *) 0xE0008030))#define T1CR2           (*((volatile unsigned int *) 0xE0008034))#define T1CR3           (*((volatile unsigned int *) 0xE0008038))#define T1EMR           (*((volatile unsigned int *) 0xE000803C))/* Pulse Width Modulator (PWM) *//* 脉宽调制器的特殊寄存器 */#define PWMIR           (*((volatile unsigned int *) 0xE0014000))#define PWMTCR          (*((volatile unsigned int *) 0xE0014004))#define PWMTC           (*((volatile unsigned int *) 0xE0014008))#define PWMPR           (*((volatile unsigned int *) 0xE001400C))#define PWMPC           (*((volatile unsigned int *) 0xE0014010))#define PWMMCR          (*((volatile unsigned int *) 0xE0014014))#define PWMMR0          (*((volatile unsigned int *) 0xE0014018))#define PWMMR1          (*((volatile unsigned int *) 0xE001401C))#define PWMMR2          (*((volatile unsigned int *) 0xE0014020))#define PWMMR3          (*((volatile unsigned int *) 0xE0014024))#define PWMMR4          (*((volatile unsigned int *) 0xE0014040))#define PWMMR5          (*((volatile unsigned int *) 0xE0014044))#define PWMMR6          (*((volatile unsigned int *) 0xE0014048))#define PWMPCR          (*((volatile unsigned int *) 0xE001404C))#define PWMLER          (*((volatile unsigned int *) 0xE0014050))/* A/D CONVERTER *//* A/D转换器 */#define ADCR            (*((volatile unsigned int *) 0xE0034000))	/* no in lpc210x */#define ADDR            (*((volatile unsigned int *) 0xE0034004))	/* no in lpc210x *//* 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 int *) 0xE0024014))#define CTIME1          (*((volatile unsigned int *) 0xE0024018))#define CTIME2          (*((volatile unsigned int *) 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 int *) 0xE0000004))#define WDFEED          (*((volatile unsigned char *) 0xE0000008))#define WDTV            (*((volatile unsigned int *) 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)struct lpc_timers{	unsigned int ir;	// 	unsigned int tcr;	// 	unsigned int tc;	// 	unsigned int pr;	// 	unsigned int pc;	// 	unsigned int mcr;	// 	unsigned int mr0;	// 	unsigned int mr1;	// 	unsigned int mr2;	// 	unsigned int mr3;	// 	unsigned int ccr;	// 	unsigned int cr0;	// 	unsigned int cr1;	// 	unsigned int cr2;	// 	unsigned int cr3;	// 	unsigned int emr;	// };#define IRQ_WD		0//#define IRQ_SWI               1//#define IRQ_USART0    2//#define IRQ_USART1    3//#define IRQ_TC0               (1<<4)#define IRQ_TC0		0x10#define IRQ_TC1		5#define IRQ_UART0	(1 << 6)#define IRQ_UART1	7#define IRQ_PWM		8#define IRQ_I2C		9#define IRQ_SPI0		10#define IRQ_SPI1		11#define IRQ_PLL		12#define IRQ_RTC		13#define IRQ_EXT0		14#define IRQ_EXT1		15#define IRQ_EXT2		16#define IRQ_EXT3		17#define IRQ_AD		18#endif

⌨️ 快捷键说明

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