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

📄 lpc.h

📁 skyeye-1.0.0.rar surce code
💻 H
📖 第 1 页 / 共 3 页
字号:
#define U1LSR           (*((volatile unsigned char *) 0xE0010014))
#define U1MSR           (*((volatile unsigned char *) 0xE0010018))
#define U1SCR           (*((volatile unsigned char *) 0xE001001C))
#define U1DLL           (*((volatile unsigned char *) 0xE0010000))
#define U1DLM           (*((volatile unsigned char *) 0xE0010004))

/* I2C (8/16 bit data bus) */
/* 芯片间总线(I2C)的特殊寄存器 */
#define I2CONSET        (*((volatile unsigned long *) 0xE001C000))
#define I2STAT          (*((volatile unsigned long *) 0xE001C004))
#define I2DAT           (*((volatile unsigned long *) 0xE001C008))
#define I2ADR           (*((volatile unsigned long *) 0xE001C00C))
#define I2SCLH          (*((volatile unsigned long *) 0xE001C010))
#define I2SCLL          (*((volatile unsigned long *) 0xE001C014))
#define I2CONCLR        (*((volatile unsigned long *) 0xE001C018))

/* SPI (Serial Peripheral Interface) */
/* SPI总线接口的特殊寄存器 */
	/* only for lpc210x */
#define SPI_SPCR        (*((volatile unsigned char *) 0xE0020000))
#define SPI_SPSR        (*((volatile unsigned char *) 0xE0020004))
#define SPI_SPDR        (*((volatile unsigned char *) 0xE0020008))
#define SPI_SPCCR       (*((volatile unsigned char *) 0xE002000C))
#define SPI_SPINT       (*((volatile unsigned char *) 0xE002001C))

#define S0PCR           (*((volatile unsigned char *) 0xE0020000))	/* no in lpc210x */
#define S0PSR           (*((volatile unsigned char *) 0xE0020004))	/* no in lpc210x */
#define S0PDR           (*((volatile unsigned char *) 0xE0020008))	/* no in lpc210x */
#define S0PCCR          (*((volatile unsigned char *) 0xE002000C))	/* no in lpc210x */
#define S0PINT          (*((volatile unsigned char *) 0xE002001C))	/* no in lpc210x */

#define S1PCR           (*((volatile unsigned char *) 0xE0030000))	/* no in lpc210x */
#define S1PSR           (*((volatile unsigned char *) 0xE0030004))	/* no in lpc210x */
#define S1PDR           (*((volatile unsigned char *) 0xE0030008))	/* no in lpc210x */
#define S1PCCR          (*((volatile unsigned char *) 0xE003000C))	/* no in lpc210x */
#define S1PINT          (*((volatile unsigned char *) 0xE003001C))	/* no in lpc210x */

/* CAN CONTROLLERS AND ACCEPTANCE FILTER */
/* CAN控制器和接收路波器 */
#define CAN1MOD         (*((volatile unsigned char *) 0xE0044000))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1CMR         (*((volatile unsigned char *) 0xE0044004))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1GSR         (*((volatile unsigned char *) 0xE0044008))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1ICR         (*((volatile unsigned char *) 0xE004400C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1IER         (*((volatile unsigned char *) 0xE0044010))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1BTR         (*((volatile unsigned char *) 0xE0044014))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1EWL         (*((volatile unsigned char *) 0xE004401C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1SR          (*((volatile unsigned char *) 0xE0044020))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1RFS         (*((volatile unsigned char *) 0xE0044024))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1RDA         (*((volatile unsigned char *) 0xE0044028))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1RDB         (*((volatile unsigned char *) 0xE004402C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TFI1        (*((volatile unsigned char *) 0xE0044030))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TID1        (*((volatile unsigned char *) 0xE0044034))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TDA1        (*((volatile unsigned char *) 0xE0044038))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TDB1        (*((volatile unsigned char *) 0xE004403C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TFI2        (*((volatile unsigned char *) 0xE0044040))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TID2        (*((volatile unsigned char *) 0xE0044044))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TDA2        (*((volatile unsigned char *) 0xE0044048))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TDB2        (*((volatile unsigned char *) 0xE004404C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TFI3        (*((volatile unsigned char *) 0xE0044050))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TID3        (*((volatile unsigned char *) 0xE0044054))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TDA3        (*((volatile unsigned char *) 0xE0044058))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN1TDB3        (*((volatile unsigned char *) 0xE004405C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */

#define CAN2MOD         (*((volatile unsigned char *) 0xE0048000))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2CMR         (*((volatile unsigned char *) 0xE0048004))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2GSR         (*((volatile unsigned char *) 0xE0048008))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2ICR         (*((volatile unsigned char *) 0xE004800C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2IER         (*((volatile unsigned char *) 0xE0048010))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2BTR         (*((volatile unsigned char *) 0xE0048014))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2EWL         (*((volatile unsigned char *) 0xE004801C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2SR          (*((volatile unsigned char *) 0xE0048020))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2RFS         (*((volatile unsigned char *) 0xE0048024))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2RDA         (*((volatile unsigned char *) 0xE0048028))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2RDB         (*((volatile unsigned char *) 0xE004802C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TFI1        (*((volatile unsigned char *) 0xE0048030))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TID1        (*((volatile unsigned char *) 0xE0048034))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TDA1        (*((volatile unsigned char *) 0xE0048038))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TDB1        (*((volatile unsigned char *) 0xE004803C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TFI2        (*((volatile unsigned char *) 0xE0048040))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TID2        (*((volatile unsigned char *) 0xE0048044))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TDA2        (*((volatile unsigned char *) 0xE0048048))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TDB2        (*((volatile unsigned char *) 0xE004804C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TFI3        (*((volatile unsigned char *) 0xE0048050))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TID3        (*((volatile unsigned char *) 0xE0048054))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TDA3        (*((volatile unsigned char *) 0xE0048058))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN2TDB3        (*((volatile unsigned char *) 0xE004805C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */

#define CAN3MOD         (*((volatile unsigned char *) 0xE004C000))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3CMR         (*((volatile unsigned char *) 0xE004C004))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3GSR         (*((volatile unsigned char *) 0xE004C008))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3ICR         (*((volatile unsigned char *) 0xE004C00C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3IER         (*((volatile unsigned char *) 0xE004C010))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3BTR         (*((volatile unsigned char *) 0xE004C014))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3EWL         (*((volatile unsigned char *) 0xE004C01C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3SR          (*((volatile unsigned char *) 0xE004C020))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3RFS         (*((volatile unsigned char *) 0xE004C024))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3RDA         (*((volatile unsigned char *) 0xE004C028))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3RDB         (*((volatile unsigned char *) 0xE004C02C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TFI1        (*((volatile unsigned char *) 0xE004C030))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TID1        (*((volatile unsigned char *) 0xE004C034))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TDA1        (*((volatile unsigned char *) 0xE004C038))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TDB1        (*((volatile unsigned char *) 0xE004C03C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TFI2        (*((volatile unsigned char *) 0xE004C040))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TID2        (*((volatile unsigned char *) 0xE004C044))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TDA2        (*((volatile unsigned char *) 0xE004C048))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TDB2        (*((volatile unsigned char *) 0xE004C04C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TFI3        (*((volatile unsigned char *) 0xE004C050))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TID3        (*((volatile unsigned char *) 0xE004C054))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TDA3        (*((volatile unsigned char *) 0xE004C058))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN3TDB3        (*((volatile unsigned char *) 0xE004C05C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */

#define CAN4MOD         (*((volatile unsigned char *) 0xE0050000))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4CMR         (*((volatile unsigned char *) 0xE0050004))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4GSR         (*((volatile unsigned char *) 0xE0050008))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4ICR         (*((volatile unsigned char *) 0xE005000C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4IER         (*((volatile unsigned char *) 0xE0050010))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4BTR         (*((volatile unsigned char *) 0xE0050014))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4EWL         (*((volatile unsigned char *) 0xE005001C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4SR          (*((volatile unsigned char *) 0xE0050020))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4RFS         (*((volatile unsigned char *) 0xE0050024))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4RDA         (*((volatile unsigned char *) 0xE0050028))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4RDB         (*((volatile unsigned char *) 0xE005002C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TFI1        (*((volatile unsigned char *) 0xE0050030))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TID1        (*((volatile unsigned char *) 0xE0050034))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TDA1        (*((volatile unsigned char *) 0xE0050038))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TDB1        (*((volatile unsigned char *) 0xE005003C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TFI2        (*((volatile unsigned char *) 0xE0050040))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TID2        (*((volatile unsigned char *) 0xE0050044))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TDA2        (*((volatile unsigned char *) 0xE0050048))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TDB2        (*((volatile unsigned char *) 0xE005004C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TFI3        (*((volatile unsigned char *) 0xE0050050))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TID3        (*((volatile unsigned char *) 0xE0050054))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TDA3        (*((volatile unsigned char *) 0xE0050058))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN4TDB3        (*((volatile unsigned char *) 0xE005005C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */

#define CAN5MOD         (*((volatile unsigned char *) 0xE0054000))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5CMR         (*((volatile unsigned char *) 0xE0054004))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5GSR         (*((volatile unsigned char *) 0xE0054008))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5ICR         (*((volatile unsigned char *) 0xE005400C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5IER         (*((volatile unsigned char *) 0xE0054010))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5BTR         (*((volatile unsigned char *) 0xE0054014))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5EWL         (*((volatile unsigned char *) 0xE005401C))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5SR          (*((volatile unsigned char *) 0xE0054020))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5RFS         (*((volatile unsigned char *) 0xE0054024))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#define CAN5RDA         (*((volatile unsigned char *) 0xE0054028))	/* lpc2119\lpc2129\lpc2292\lpc2294 only */
#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 */

⌨️ 快捷键说明

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