From 64ed7d8f2437c3489152ecd0ca462d74fded1328 Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 23 Jul 2010 15:54:17 +0000 Subject: [PATCH] Add some errors. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4058 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/i2c.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bertos/drv/i2c.h b/bertos/drv/i2c.h index 361bd49d..1c58619a 100644 --- a/bertos/drv/i2c.h +++ b/bertos/drv/i2c.h @@ -134,9 +134,10 @@ bool i2c_recv(void *_buf, size_t count); * */ #define I2C_OK 0 -#define I2C_START_ERR BV(0) +#define I2C_ARB_LOST BV(2) +#define I2C_START_TIMEOUT BV(0) #define I2C_NO_ACK BV(1) -#define I2C_ARBLST BV(2) + #define I2C_NOSTOP 0 -- 2.25.1