mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 22:04:54 +08:00
[BSP] change the type of cmd.
1. Change the type of cmd to 'int'; 2. Remove RT_LWIP_USING_RT_MEM macro;
This commit is contained in:
@@ -574,7 +574,7 @@ static rt_size_t nop_write(rt_device_t dev,
|
||||
return size;
|
||||
}
|
||||
|
||||
static rt_err_t nop_control(rt_device_t dev, rt_uint8_t cmd, void *args)
|
||||
static rt_err_t nop_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ _err:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static rt_err_t rt_sdcard_control(rt_device_t dev, rt_uint8_t cmd, void *args)
|
||||
static rt_err_t rt_sdcard_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
struct sdcard_device *sd;
|
||||
unsigned int size;
|
||||
|
||||
@@ -39,7 +39,7 @@ static rt_err_t sdlfb_close(rt_device_t dev)
|
||||
}
|
||||
|
||||
static rt_mutex_t sdllock;
|
||||
static rt_err_t sdlfb_control(rt_device_t dev, rt_uint8_t cmd, void *args)
|
||||
static rt_err_t sdlfb_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
struct sdlfb_device *device;
|
||||
|
||||
|
||||
@@ -694,7 +694,7 @@ static rt_size_t tap_netif_write (rt_device_t dev, rt_off_t pos, const void* buf
|
||||
return 0;
|
||||
}
|
||||
|
||||
static rt_err_t tap_netif_control(rt_device_t dev, rt_uint8_t cmd, void *args)
|
||||
static rt_err_t tap_netif_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
switch (cmd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user