diff options
| author | bernard <[email protected]> | 2017-10-15 22:56:46 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-15 22:56:46 +0800 |
| commit | d7087fdd3b998192afb03b34fd8034071d06bde7 (patch) | |
| tree | 6a99d97408c4b3bc708b3a0601bff80907d8beac /components/drivers/i2c | |
| parent | 0f5a68a55e2a3c44f1e85029d22de6180ad30390 (diff) | |
[DeviceDrivers] change cmd type.
1. Change 'rt_uint8_t' type of cmd to 'int';
2. Add waitqueue;
3. Split device ipc header files;
Diffstat (limited to 'components/drivers/i2c')
| -rw-r--r-- | components/drivers/i2c/fm24clxx.c | 2 | ||||
| -rw-r--r-- | components/drivers/i2c/i2c_dev.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/i2c/fm24clxx.c b/components/drivers/i2c/fm24clxx.c index 4856a945da..c37a62973a 100644 --- a/components/drivers/i2c/fm24clxx.c +++ b/components/drivers/i2c/fm24clxx.c @@ -47,7 +47,7 @@ static rt_err_t fm24clxx_close(rt_device_t dev) return RT_EOK; } -static rt_err_t fm24clxx_control(rt_device_t dev, rt_uint8_t cmd, void *args) +static rt_err_t fm24clxx_control(rt_device_t dev, int cmd, void *args) { return RT_EOK; } diff --git a/components/drivers/i2c/i2c_dev.c b/components/drivers/i2c/i2c_dev.c index 4b811c62ea..377e394cb3 100644 --- a/components/drivers/i2c/i2c_dev.c +++ b/components/drivers/i2c/i2c_dev.c @@ -66,7 +66,7 @@ static rt_size_t i2c_bus_device_write(rt_device_t dev, } static rt_err_t i2c_bus_device_control(rt_device_t dev, - rt_uint8_t cmd, + int cmd, void *args) { rt_err_t ret; |
