From: asterix Date: Tue, 20 Jul 2010 10:17:53 +0000 (+0000) Subject: Add states definition. Some fix. X-Git-Tag: 2.6.0~288^2~57 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4922192a646356b0be73508d946dd619ffe3a5e1;p=bertos.git Add states definition. Some fix. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4036 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/arm/io/lpc23xx.h b/bertos/cpu/arm/io/lpc23xx.h index 03e98611..30d467b1 100644 --- a/bertos/cpu/arm/io/lpc23xx.h +++ b/bertos/cpu/arm/io/lpc23xx.h @@ -767,6 +767,8 @@ are for LPC24xx only. */ #define I2CON_AA 2 // Assert acknowledge Clear bit /* I2C Status codes */ +#define I2C_STAT_ERROR 0x00 +#define I2C_STAT_UNKNOW 0xF8 #define I2C_STAT_SEND 0x08 #define I2C_STAT_RESEND 0x10 #define I2C_STAT_SLAW_ACK 0x18 @@ -786,8 +788,8 @@ are for LPC24xx only. */ /* I2C pins defines */ -#define I2C_PINSEL_MASK 0x3C00000 -#define I2C_PINSEL 0x1400000 +#define I2C0_PINSEL_MASK 0x3C00000 +#define I2C0_PINSEL 0x1400000 /* SPI0 (Serial Peripheral Interface 0) */ #define SPI0_BASE_ADDR 0xE0020000