X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Farm%2Fio%2Flpc23xx.h;h=30d467b1afd476bc3a5565b6aa9e4bfe079d9ff1;hb=5c77344df12ac768e7b53e0085ad08de21513d2f;hp=03e98611f3e5bf6dacdbeb31ce61bec32ba01f10;hpb=e3f817d614e37aa8bfffe23543af9dd4ecde225c;p=bertos.git 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