[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:
bernard
2017-10-16 13:23:03 +08:00
parent 68d01f8261
commit 5e3b3b19a6
120 changed files with 99 additions and 141 deletions

View File

@@ -386,7 +386,7 @@ rt_err_t sam7xether_init(rt_device_t dev)
}
/* control the interface */
rt_err_t sam7xether_control(rt_device_t dev, rt_uint8_t cmd, void *args)
rt_err_t sam7xether_control(rt_device_t dev, int cmd, void *args)
{
switch(cmd)
{

View File

@@ -552,7 +552,7 @@ static rt_size_t rt_sdcard_write (rt_device_t dev, rt_off_t pos, const void* buf
return size;
}
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)
{
return RT_EOK;
}

View File

@@ -335,7 +335,7 @@ static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, const void* buf
return (rt_size_t)ptr - (rt_size_t)buffer;
}
static rt_err_t rt_serial_control (rt_device_t dev, rt_uint8_t cmd, void *args)
static rt_err_t rt_serial_control (rt_device_t dev, int cmd, void *args)
{
return RT_EOK;
}