mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-23 21:43:47 +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:
@@ -526,7 +526,7 @@ static rt_size_t rt_dm9161_write (rt_device_t dev, rt_off_t pos, const void* buf
|
||||
return 0;
|
||||
}
|
||||
|
||||
static rt_err_t rt_dm9161_control(rt_device_t dev, rt_uint8_t cmd, void *args)
|
||||
static rt_err_t rt_dm9161_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
@@ -503,7 +503,7 @@ static rt_err_t rt_sdcard_close(rt_device_t dev)
|
||||
*
|
||||
* @param hook the hook function
|
||||
*/
|
||||
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)
|
||||
{
|
||||
rt_kprintf("cmd = %d\n",cmd);
|
||||
RT_ASSERT(dev != RT_NULL);
|
||||
|
||||
Reference in New Issue
Block a user