summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authortyustli <[email protected]>2019-06-12 09:38:32 +0800
committertyustli <[email protected]>2019-06-12 09:38:32 +0800
commit89b90592ee0d2db6a5c1fc8b38e5904751754ffe (patch)
treec866113bff6dd87abfe7bdad79e7a061e5dc426e /components/drivers/include
parentbcf77abad66aff5c7dfde8fbb601132ab4273697 (diff)
add touch framework
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/i2c.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/i2c.h b/components/drivers/include/drivers/i2c.h
index e2a9e7d0b8..c6376efa89 100644
--- a/components/drivers/include/drivers/i2c.h
+++ b/components/drivers/include/drivers/i2c.h
@@ -60,6 +60,13 @@ struct rt_i2c_bus_device
void *priv;
};
+struct rt_i2c_client
+{
+ struct rt_device parent;
+ struct rt_i2c_bus_device *bus;
+ rt_uint16_t client_addr;
+};
+
#ifdef RT_I2C_DEBUG
#define i2c_dbg(fmt, ...) rt_kprintf(fmt, ##__VA_ARGS__)
#else