summaryrefslogtreecommitdiff
path: root/libcpu/unicore32
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-16 13:23:03 +0800
committerbernard <[email protected]>2017-10-16 13:23:03 +0800
commit5e3b3b19a6994c7113bfa823342b35fbb61287ce (patch)
tree2bcdf09698ef7b60220d24092995962b592935b9 /libcpu/unicore32
parent68d01f8261cf0fb4b423a9f286bfdc6d15e729bb (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 'libcpu/unicore32')
-rw-r--r--libcpu/unicore32/sep6200/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/unicore32/sep6200/serial.c b/libcpu/unicore32/sep6200/serial.c
index 4be71127de..518257b617 100644
--- a/libcpu/unicore32/sep6200/serial.c
+++ b/libcpu/unicore32/sep6200/serial.c
@@ -216,7 +216,7 @@ static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, const void* buf
return (rt_uint32_t)ptr - (rt_uint32_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)
{
RT_ASSERT(dev != RT_NULL);