From f27a8a6bf27047bf0e173cfa448e1694b80a9fb5 Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 2 Jul 2010 16:51:47 +0000 Subject: [PATCH] Add status definition. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3989 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/io/stm32_i2c.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 -- 2.25.1