From 4922192a646356b0be73508d946dd619ffe3a5e1 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 20 Jul 2010 10:17:53 +0000 Subject: [PATCH] Add states definition. Some fix. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4036 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/io/lpc23xx.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.25.1