mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-16 03:18:54 +00:00
V1.0.5
This commit is contained in:
@@ -88,6 +88,13 @@ static rt_err_t i2c_bus_device_control(rt_device_t dev,
|
||||
return -RT_EIO;
|
||||
}
|
||||
break;
|
||||
case RT_I2C_DEV_SLAVE_CONFIG:
|
||||
ret = rt_i2c_slave_control(bus, cmd, args);
|
||||
if (ret < 0)
|
||||
{
|
||||
return -RT_EIO;
|
||||
}
|
||||
break;
|
||||
case RT_I2C_DEV_CTRL_CLK:
|
||||
bus_clock = *(rt_uint32_t *)args;
|
||||
ret = rt_i2c_control(bus, cmd, bus_clock);
|
||||
|
||||
Reference in New Issue
Block a user