diff options
| author | tyustli <[email protected]> | 2019-06-12 09:38:32 +0800 |
|---|---|---|
| committer | tyustli <[email protected]> | 2019-06-12 09:38:32 +0800 |
| commit | 89b90592ee0d2db6a5c1fc8b38e5904751754ffe (patch) | |
| tree | c866113bff6dd87abfe7bdad79e7a061e5dc426e /components/drivers/include | |
| parent | bcf77abad66aff5c7dfde8fbb601132ab4273697 (diff) | |
add touch framework
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/i2c.h | 7 |
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 |
