Add status definition.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 2 Jul 2010 16:51:47 +0000 (16:51 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 2 Jul 2010 16:51:47 +0000 (16:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3989 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/stm32_i2c.h

index 56f265404e37e9e693e48b6939d272ff04c02a9d..0ac306947c8f3346d8a76f4009b2b9e413f0935a 100644 (file)
 #define CCR_CCR_SET             ((uint16_t)0x0FFF)
 
 /* I2C Status */
-#define SR1_BUSY                                 1
-#define SR1_MSL                                  0
+#define SR1_TXE                                  7
+#define SR1_RXE                                  6
+#define SR1_ADDR                                 1
+#define SR1_BTF                                  2
+#define SR1_SB                                   0
+
+#define SR2_TRA                                  2
+#define SR2_BUSY                                 1
+#define SR2_MSL                                  0
+
 
-#define SR2_SB                                   0
 
 
 struct stm32_i2c