projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add header for i2c for lpc2.
[bertos.git]
/
bertos
/
cpu
/
arm
/
io
/
lpc23xx.h
diff --git
a/bertos/cpu/arm/io/lpc23xx.h
b/bertos/cpu/arm/io/lpc23xx.h
index 03e98611f3e5bf6dacdbeb31ce61bec32ba01f10..30d467b1afd476bc3a5565b6aa9e4bfe079d9ff1 100644
(file)
--- 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 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
#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 */
/* I2C pins defines */
-#define I2C
_PINSEL_MASK
0x3C00000
-#define I2C
_PINSEL
0x1400000
+#define I2C
0_PINSEL_MASK
0x3C00000
+#define I2C
0_PINSEL
0x1400000
/* SPI0 (Serial Peripheral Interface 0) */
#define SPI0_BASE_ADDR 0xE0020000
/* SPI0 (Serial Peripheral Interface 0) */
#define SPI0_BASE_ADDR 0xE0020000