Add states definition. Some fix.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2010 10:17:53 +0000 (10:17 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Jul 2010 10:17:53 +0000 (10:17 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4036 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/io/lpc23xx.h

index 03e98611f3e5bf6dacdbeb31ce61bec32ba01f10..30d467b1afd476bc3a5565b6aa9e4bfe079d9ff1 100644 (file)
@@ -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