From: asterix Date: Fri, 2 Jul 2010 16:51:47 +0000 (+0000) Subject: Add status definition. X-Git-Tag: 2.6.0~318 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f27a8a6bf27047bf0e173cfa448e1694b80a9fb5;p=bertos.git Add status definition. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3989 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/stm32_i2c.h b/bertos/cpu/cortex-m3/io/stm32_i2c.h index 56f26540..0ac30694 100644 --- a/bertos/cpu/cortex-m3/io/stm32_i2c.h +++ b/bertos/cpu/cortex-m3/io/stm32_i2c.h @@ -240,10 +240,17 @@ #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