diff options
| author | bernard <[email protected]> | 2017-10-16 13:23:03 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-16 13:23:03 +0800 |
| commit | 5e3b3b19a6994c7113bfa823342b35fbb61287ce (patch) | |
| tree | 2bcdf09698ef7b60220d24092995962b592935b9 /bsp/simulator | |
| parent | 68d01f8261cf0fb4b423a9f286bfdc6d15e729bb (diff) | |
[BSP] change the type of cmd.
1. Change the type of cmd to 'int';
2. Remove RT_LWIP_USING_RT_MEM macro;
Diffstat (limited to 'bsp/simulator')
| -rw-r--r-- | bsp/simulator/drivers/dfs_win32.c | 2 | ||||
| -rwxr-xr-x | bsp/simulator/drivers/sd_sim.c | 2 | ||||
| -rwxr-xr-x | bsp/simulator/drivers/sdl_fb.c | 2 | ||||
| -rw-r--r-- | bsp/simulator/drivers/tap_netif.c | 2 | ||||
| -rw-r--r-- | bsp/simulator/pcap/pcap_netif.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/bsp/simulator/drivers/dfs_win32.c b/bsp/simulator/drivers/dfs_win32.c index a0ebcf5e6e..68ac541770 100644 --- a/bsp/simulator/drivers/dfs_win32.c +++ b/bsp/simulator/drivers/dfs_win32.c @@ -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; } diff --git a/bsp/simulator/drivers/sd_sim.c b/bsp/simulator/drivers/sd_sim.c index 866acecd4f..77adfba024 100755 --- a/bsp/simulator/drivers/sd_sim.c +++ b/bsp/simulator/drivers/sd_sim.c @@ -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; diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c index 198b85d0d9..bd43a633b5 100755 --- a/bsp/simulator/drivers/sdl_fb.c +++ b/bsp/simulator/drivers/sdl_fb.c @@ -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; diff --git a/bsp/simulator/drivers/tap_netif.c b/bsp/simulator/drivers/tap_netif.c index 59a5d12e68..a8cd865c5e 100644 --- a/bsp/simulator/drivers/tap_netif.c +++ b/bsp/simulator/drivers/tap_netif.c @@ -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) { diff --git a/bsp/simulator/pcap/pcap_netif.c b/bsp/simulator/pcap/pcap_netif.c index 58bc89f7b4..d6572c3045 100644 --- a/bsp/simulator/pcap/pcap_netif.c +++ b/bsp/simulator/pcap/pcap_netif.c @@ -176,7 +176,7 @@ static rt_size_t pcap_netif_write (rt_device_t dev, rt_off_t pos, const void* bu return 0; } -static rt_err_t pcap_netif_control(rt_device_t dev, rt_uint8_t cmd, void *args) +static rt_err_t pcap_netif_control(rt_device_t dev, int cmd, void *args) { switch (cmd) { |
