?? lpc214x.h
字號:
#define VIC_Channel_ARMCore0 (2)#define VIC_Channel_ARMCore1 (3)#define VIC_Channel_Timer0 (4)#define VIC_Channel_Timer1 (5)#define VIC_Channel_UART0 (6)#define VIC_Channel_UART1 (7)#define VIC_Channel_PWM0 (8)#define VIC_Channel_I2C0 (9)#define VIC_Channel_SPI0 (10)#define VIC_Channel_SPI1 (11)#define VIC_Channel_SSP (11)#define VIC_Channel_PLL (12)#define VIC_Channel_RTC (13)#define VIC_Channel_EINT0 (14)#define VIC_Channel_EINT1 (15)#define VIC_Channel_EINT2 (16)#define VIC_Channel_EINT3 (17)#define VIC_Channel_AD0 (18)#define VIC_Channel_I2C1 (19)#define VIC_Channel_BOD (20)#define VIC_Channel_AD1 (21)#define VIC_Channel_USB (22)/*################################################################################ PCB - Pin Connect Block##############################################################################*/#define PCB_PINSEL0 (*(pREG32 (0xe002c000)))#define PCB_PINSEL1 (*(pREG32 (0xe002c004)))#define PCB_PINSEL2 (*(pREG32 (0xe002c014)))#define PCB_PINSEL0_ALL_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_ALL_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P00_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P00_TXD0 ((unsigned int) 0x00000001)#define PCB_PINSEL0_P00_PWM1 ((unsigned int) 0x00000002)#define PCB_PINSEL0_P00_RSVD3 ((unsigned int) 0x00000003)#define PCB_PINSEL0_P00_MASK ((unsigned int) 0x00000003)#define PCB_PINSEL0_P01_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P01_RXD0 ((unsigned int) 0x00000004)#define PCB_PINSEL0_P01_PWM3 ((unsigned int) 0x00000008)#define PCB_PINSEL0_P01_EINT0 ((unsigned int) 0x0000000c)#define PCB_PINSEL0_P01_MASK ((unsigned int) 0x0000000c)#define PCB_PINSEL0_P02_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P02_SCL0 ((unsigned int) 0x00000010)#define PCB_PINSEL0_P02_CAP00 ((unsigned int) 0x00000020)#define PCB_PINSEL0_P02_RSVD3 ((unsigned int) 0x00000030)#define PCB_PINSEL0_P02_MASK ((unsigned int) 0x00000030)#define PCB_PINSEL0_P03_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P03_SDA0 ((unsigned int) 0x00000040)#define PCB_PINSEL0_P03_MAT00 ((unsigned int) 0x00000080)#define PCB_PINSEL0_P03_EINT1 ((unsigned int) 0x000000c0)#define PCB_PINSEL0_P03_MASK ((unsigned int) 0x000000c0)#define PCB_PINSEL0_P04_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P04_SCK0 ((unsigned int) 0x00000100)#define PCB_PINSEL0_P04_CAP01 ((unsigned int) 0x00000200)#define PCB_PINSEL0_P04_RSVD3 ((unsigned int) 0x00000300)#define PCB_PINSEL0_P04_MASK ((unsigned int) 0x00000300)#define PCB_PINSEL0_P05_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P05_MISO0 ((unsigned int) 0x00000400)#define PCB_PINSEL0_P05_MAT01 ((unsigned int) 0x00000800)#define PCB_PINSEL0_P05_AD06 ((unsigned int) 0x00000c00)#define PCB_PINSEL0_P05_MASK ((unsigned int) 0x00000c00)#define PCB_PINSEL0_P06_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P06_MOSI0 ((unsigned int) 0x00001000)#define PCB_PINSEL0_P06_CAP02 ((unsigned int) 0x00002000)#define PCB_PINSEL0_P06_AD10 ((unsigned int) 0x00003000)#define PCB_PINSEL0_P06_MASK ((unsigned int) 0x00003000)#define PCB_PINSEL0_P07_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P07_SSEL0 ((unsigned int) 0x00004000)#define PCB_PINSEL0_P07_PWM2 ((unsigned int) 0x00008000)#define PCB_PINSEL0_P07_EINT2 ((unsigned int) 0x0000c000)#define PCB_PINSEL0_P07_MASK ((unsigned int) 0x0000c000)#define PCB_PINSEL0_P08_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P08_TXD1 ((unsigned int) 0x00010000)#define PCB_PINSEL0_P08_PWM4 ((unsigned int) 0x00020000)#define PCB_PINSEL0_P08_AD11 ((unsigned int) 0x00030000)#define PCB_PINSEL0_P08_MASK ((unsigned int) 0x00030000)#define PCB_PINSEL0_P09_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P09_RXD1 ((unsigned int) 0x00040000)#define PCB_PINSEL0_P09_PWM6 ((unsigned int) 0x00080000)#define PCB_PINSEL0_P09_EINT3 ((unsigned int) 0x000c0000)#define PCB_PINSEL0_P09_MASK ((unsigned int) 0x000c0000)#define PCB_PINSEL0_P010_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P010_RTS1 ((unsigned int) 0x00100000)#define PCB_PINSEL0_P010_CAP10 ((unsigned int) 0x00200000)#define PCB_PINSEL0_P010_AD12 ((unsigned int) 0x00300000)#define PCB_PINSEL0_P010_MASK ((unsigned int) 0x00300000)#define PCB_PINSEL0_P011_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P011_CTS1 ((unsigned int) 0x00400000)#define PCB_PINSEL0_P011_CAP11 ((unsigned int) 0x00800000)#define PCB_PINSEL0_P011_SCL1 ((unsigned int) 0x00c00000)#define PCB_PINSEL0_P011_MASK ((unsigned int) 0x00c00000)#define PCB_PINSEL0_P012_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P012_DSR1 ((unsigned int) 0x01000000)#define PCB_PINSEL0_P012_MAT10 ((unsigned int) 0x02000000)#define PCB_PINSEL0_P012_AD13 ((unsigned int) 0x03000000)#define PCB_PINSEL0_P012_MASK ((unsigned int) 0x03000000)#define PCB_PINSEL0_P013_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P013_DTR1 ((unsigned int) 0x04000000)#define PCB_PINSEL0_P013_MAT11 ((unsigned int) 0x08000000)#define PCB_PINSEL0_P013_AD14 ((unsigned int) 0x0c000000)#define PCB_PINSEL0_P013_MASK ((unsigned int) 0x0c000000)#define PCB_PINSEL0_P014_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P014_DCD1 ((unsigned int) 0x10000000)#define PCB_PINSEL0_P014_EINT1 ((unsigned int) 0x20000000)#define PCB_PINSEL0_P014_SDA1 ((unsigned int) 0x30000000)#define PCB_PINSEL0_P014_MASK ((unsigned int) 0x30000000)#define PCB_PINSEL0_P015_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL0_P015_RI1 ((unsigned int) 0x40000000)#define PCB_PINSEL0_P015_EINT2 ((unsigned int) 0x80000000)#define PCB_PINSEL0_P015_AD15 ((unsigned int) 0xc0000000)#define PCB_PINSEL0_P015_MASK ((unsigned int) 0xc0000000)#define PCB_PINSEL1_P016_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P016_EINT0 ((unsigned int) 0x00000001)#define PCB_PINSEL1_P016_MAT02 ((unsigned int) 0x00000002)#define PCB_PINSEL1_P016_CAP02 ((unsigned int) 0x00000003)#define PCB_PINSEL1_P016_MASK ((unsigned int) 0x00000003)#define PCB_PINSEL1_P017_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P017_CAP12 ((unsigned int) 0x00000004)#define PCB_PINSEL1_P017_SCK1 ((unsigned int) 0x00000008)#define PCB_PINSEL1_P017_MAT12 ((unsigned int) 0x0000000c)#define PCB_PINSEL1_P017_MASK ((unsigned int) 0x0000000c)#define PCB_PINSEL1_P018_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P018_CAP13 ((unsigned int) 0x00000010)#define PCB_PINSEL1_P018_MISO1 ((unsigned int) 0x00000020)#define PCB_PINSEL1_P018_MAT13 ((unsigned int) 0x00000030)#define PCB_PINSEL1_P018_MASK ((unsigned int) 0x00000030)#define PCB_PINSEL1_P019_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P019_MAT12 ((unsigned int) 0x00000040)#define PCB_PINSEL1_P019_MOSI1 ((unsigned int) 0x00000080)#define PCB_PINSEL1_P019_CAP12 ((unsigned int) 0x000000c0)#define PCB_PINSEL1_P019_MASK ((unsigned int) 0x000000c0)#define PCB_PINSEL1_P020_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P020_MAT13 ((unsigned int) 0x00000100)#define PCB_PINSEL1_P020_SSEL1 ((unsigned int) 0x00000200)#define PCB_PINSEL1_P020_EINT3 ((unsigned int) 0x00000300)#define PCB_PINSEL1_P020_MASK ((unsigned int) 0x00000300)#define PCB_PINSEL1_P021_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P021_PWM5 ((unsigned int) 0x00000400)#define PCB_PINSEL1_P021_AD16 ((unsigned int) 0x00000800)#define PCB_PINSEL1_P021_CAP13 ((unsigned int) 0x00000c00)#define PCB_PINSEL1_P021_MASK ((unsigned int) 0x00000c00)#define PCB_PINSEL1_P022_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P022_AD17 ((unsigned int) 0x00001000)#define PCB_PINSEL1_P022_CAP00 ((unsigned int) 0x00002000)#define PCB_PINSEL1_P022_MAT00 ((unsigned int) 0x00003000)#define PCB_PINSEL1_P022_MASK ((unsigned int) 0x00003000)#define PCB_PINSEL1_P023_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P023_VBUS ((unsigned int) 0x00004000)#define PCB_PINSEL1_P023_RSVD2 ((unsigned int) 0x00008000)#define PCB_PINSEL1_P023_RSVD3 ((unsigned int) 0x0000c000)#define PCB_PINSEL1_P023_MASK ((unsigned int) 0x0000c000)#define PCB_PINSEL1_P024_RSVD0 ((unsigned int) 0x00000000)#define PCB_PINSEL1_P024_RSVD1 ((unsigned int) 0x00010000)#define PCB_PINSEL1_P024_RSVD2 ((unsigned int) 0x00020000)#define PCB_PINSEL1_P024_RSVD3 ((unsigned int) 0x00030000)#define PCB_PINSEL1_P024_MASK ((unsigned int) 0x00030000)#define PCB_PINSEL1_P025_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P025_AD04 ((unsigned int) 0x00040000)#define PCB_PINSEL1_P025_AOUT ((unsigned int) 0x00080000)#define PCB_PINSEL1_P025_RSVD3 ((unsigned int) 0x000c0000)#define PCB_PINSEL1_P025_MASK ((unsigned int) 0x000c0000)#define PCB_PINSEL1_P026_RSVD0 ((unsigned int) 0x00000000)#define PCB_PINSEL1_P026_RSVD1 ((unsigned int) 0x00100000)#define PCB_PINSEL1_P026_RSVD2 ((unsigned int) 0x00200000)#define PCB_PINSEL1_P026_RSVD3 ((unsigned int) 0x00300000)#define PCB_PINSEL1_P026_MASK ((unsigned int) 0x00300000)#define PCB_PINSEL1_P027_RSVD0 ((unsigned int) 0x00000000)#define PCB_PINSEL1_P027_RSVD1 ((unsigned int) 0x00400000)#define PCB_PINSEL1_P027_RSVD2 ((unsigned int) 0x00800000)#define PCB_PINSEL1_P027_RSVD3 ((unsigned int) 0x00c00000)#define PCB_PINSEL1_P027_MASK ((unsigned int) 0x00c00000)#define PCB_PINSEL1_P028_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P028_AD01 ((unsigned int) 0x01000000)#define PCB_PINSEL1_P028_CAP02 ((unsigned int) 0x02000000)#define PCB_PINSEL1_P028_MAT02 ((unsigned int) 0x03000000)#define PCB_PINSEL1_P028_MASK ((unsigned int) 0x03000000)#define PCB_PINSEL1_P029_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P029_AD02 ((unsigned int) 0x04000000)#define PCB_PINSEL1_P029_CAP03 ((unsigned int) 0x08000000)#define PCB_PINSEL1_P029_MAT03 ((unsigned int) 0x0c000000)#define PCB_PINSEL1_P029_MASK ((unsigned int) 0x0c000000)#define PCB_PINSEL1_P030_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P030_AD03 ((unsigned int) 0x10000000)#define PCB_PINSEL1_P030_EINT3 ((unsigned int) 0x20000000)#define PCB_PINSEL1_P030_CAP00 ((unsigned int) 0x30000000)#define PCB_PINSEL1_P030_MASK ((unsigned int) 0x30000000)#define PCB_PINSEL1_P031_GPIO ((unsigned int) 0x00000000)#define PCB_PINSEL1_P031_UPLED ((unsigned int) 0x40000000)#define PCB_PINSEL1_P031_CONNECT ((unsigned int) 0x80000000)#define PCB_PINSEL1_P031_RSVD3 ((unsigned int) 0xc0000000)#define PCB_PINSEL1_P031_MASK ((unsigned int) 0xc0000000)#define PCB_PINSEL2_P13626_GPIO ((unsigned int) 0x00000000) #define PCB_PINSEL2_P13626_DEBUG ((unsigned int) 0x00000004) #define PCB_PINSEL2_P13626_MASK ((unsigned int) 0x00000004)#define PCB_PINSEL2_P12516_GPIO ((unsigned int) 0x00000000) #define PCB_PINSEL2_P12516_TRACE ((unsigned int) 0x00000008) #define PCB_PINSEL2_P12516_MASK ((unsigned int) 0x00000008)/*################################################################################ GPIO - General Purpose I/O##############################################################################*/#define GPIO0_IOPIN (*(pREG32 (0xe0028000)))#define GPIO0_IOSET (*(pREG32 (0xe0028004)))#define GPIO0_IODIR (*(pREG32 (0xe0028008)))#define GPIO0_IOCLR (*(pREG32 (0xe002800c)))#define GPIO1_IOPIN (*(pREG32 (0xe0028010)))#define GPIO1_IOSET (*(pREG32 (0xe0028014)))#define GPIO1_IODIR (*(pREG32 (0xe0028018)))#define GPIO1_IOCLR (*(pREG32 (0xe002801c)))#define GPIO0_FIODIR (*(pREG32 (0x3fffc000)))#define GPIO0_FIODIRL (*(pREG16 (0x3fffc000)))#define GPIO0_FIODIR0 (*(pREG8 (0x3fffc000)))#define GPIO0_FIODIR1 (*(pREG8 (0x3fffc001)))#define GPIO0_FIODIRH (*(pREG16 (0x3fffc002)))#define GPIO0_FIODIR2 (*(pREG8 (0x3fffc002)))#define GPIO0_FIODIR3 (*(pREG8 (0x3fffc003)))#define GPIO0_FIOMASK (*(pREG32 (0x3fffc010)))#define GPIO0_FIOMASKL (*(pREG16 (0x3fffc010)))#define GPIO0_FIOMASK0 (*(pREG8 (0x3fffc010)))#define GPIO0_FIOMASK1 (*(pREG8 (0x3fffc011)))#define GPIO0_FIOMASKH (*(pREG16 (0x3fffc012)))#define GPIO0_FIOMASK2 (*(pREG8 (0x3fffc012)))#define GPIO0_FIOMASK3 (*(pREG8 (0x3fffc013)))#define GPIO0_FIOPIN (*(pREG32 (0x3fffc014)))#define GPIO0_FIOPINL (*(pREG16 (0x3fffc014)))#define GPIO0_FIOPIN0 (*(pREG8 (0x3fffc014)))#define GPIO0_FIOPIN1 (*(pREG8 (0x3fffc015)))#define GPIO0_FIOPINH (*(pREG16 (0x3fffc016)))#define GPIO0_FIOPIN2 (*(pREG8 (0x3fffc016)))#define GPIO0_FIOPIN3 (*(pREG8 (0x3fffc017)))#define GPIO0_FIOSET (*(pREG32 (0x3fffc018)))#define GPIO0_FIOSETL (*(pREG16 (0x3fffc018)))#define GPIO0_FIOSET0 (*(pREG8 (0x3fffc018)))#define GPIO0_FIOSET1 (*(pREG8 (0x3fffc019)))#define GPIO0_FIOSETH (*(pREG16 (0x3fffc01a)))#define GPIO0_FIOSET2 (*(pREG8 (0x3fffc01a)))#define GPIO0_FIOSET3 (*(pREG8 (0x3fffc01b)))#define GPIO0_FIOCLR (*(pREG32 (0x3fffc01c)))#define GPIO0_FIOCLRL (*(pREG16 (0x3fffc01c)))#define GPIO0_FIOCLR0 (*(pREG8 (0x3fffc01c)))#define GPIO0_FIOCLR1 (*(pREG8 (0x3fffc01d)))#define GPIO0_FIOCLRH (*(pREG16 (0x3fffc01e)))#define GPIO0_FIOCLR2 (*(pREG8 (0x3fffc01e)))#define GPIO0_FIOCLR3 (*(pREG8 (0x3fffc01f)))#define GPIO1_FIODIR (*(pREG32 (0x3fffc020)))#define GPIO1_FIODIRL (*(pREG16 (0x3fffc020)))#define GPIO1_FIODIR0 (*(pREG8 (0x3fffc020)))#define GPIO1_FIODIR1 (*(pREG8 (0x3fffc021)))#define GPIO1_FIODIRH (*(pREG16 (0x3fffc022)))#define GPIO1_FIODIR2 (*(pREG8 (0x3fffc022)))#define GPIO1_FIODIR3 (*(pREG8 (0x3fffc023)))#define GPIO1_FIOMASK (*(pREG32 (0x3fffc030)))#define GPIO1_FIOMASKL (*(pREG16 (0x3fffc030)))#define GPIO1_FIOMASK0 (*(pREG8 (0x3fffc030)))#define GPIO1_FIOMASK1 (*(pREG8 (0x3fffc031)))#define GPIO1_FIOMASKH (*(pREG16 (0x3fffc032)))#define GPIO1_FIOMASK2 (*(pREG8 (0x3fffc032)))#define GPIO1_FIOMASK3 (*(pREG8 (0x3fffc033)))#define GPIO1_FIOPIN (*(pREG32 (0x3fffc034)))#define GPIO1_FIOPINL (*(pREG16 (0x3fffc034)))#define GPIO1_FIOPIN0 (*(pREG8 (0x3fffc034)))#define GPIO1_FIOPIN1 (*(pREG8 (0x3fffc035)))#define GPIO1_FIOPINH (*(pREG16 (0x3fffc036)))#define GPIO1_FIOPIN2 (*(pREG8 (0x3fffc036)))#define GPIO1_FIOPIN3 (*(pREG8 (0x3fffc037)))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -