From fee98f3f227cdc2f98599335205f6a04fe6bf06a Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 23 Jul 2010 16:41:43 +0000 Subject: [PATCH] Add test stop and generic error. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4059 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/i2c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bertos/drv/i2c.h b/bertos/drv/i2c.h index 1c58619a..1a0dbffe 100644 --- a/bertos/drv/i2c.h +++ b/bertos/drv/i2c.h @@ -134,6 +134,7 @@ bool i2c_recv(void *_buf, size_t count); * */ #define I2C_OK 0 +#define I2C_ERR BV(3) #define I2C_ARB_LOST BV(2) #define I2C_START_TIMEOUT BV(0) #define I2C_NO_ACK BV(1) @@ -147,6 +148,7 @@ bool i2c_recv(void *_buf, size_t count); #define I2C_TEST_START(flag) ((flag) & I2C_START_R) +#define I2C_TEST_STOP(flag) ((flag) & I2C_STOP) struct I2cHardware; struct I2c; -- 2.25.1