mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
[DeviceDrivers] change cmd type.
1. Change 'rt_uint8_t' type of cmd to 'int'; 2. Add waitqueue; 3. Split device ipc header files;
This commit is contained in:
@@ -54,7 +54,7 @@ static rt_size_t _spi_bus_device_write(rt_device_t dev,
|
||||
}
|
||||
|
||||
static rt_err_t _spi_bus_device_control(rt_device_t dev,
|
||||
rt_uint8_t cmd,
|
||||
int cmd,
|
||||
void *args)
|
||||
{
|
||||
/* TODO: add control command handle */
|
||||
@@ -120,7 +120,7 @@ static rt_size_t _spidev_device_write(rt_device_t dev,
|
||||
}
|
||||
|
||||
static rt_err_t _spidev_device_control(rt_device_t dev,
|
||||
rt_uint8_t cmd,
|
||||
int cmd,
|
||||
void *args)
|
||||
{
|
||||
switch (cmd)
|
||||
|
||||
Reference in New Issue
Block a user