summaryrefslogtreecommitdiff
path: root/bsp/nios_ii
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 /bsp/nios_ii
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 'bsp/nios_ii')
-rw-r--r--bsp/nios_ii/rtconfig.h2
-rw-r--r--bsp/nios_ii/uart.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/bsp/nios_ii/rtconfig.h b/bsp/nios_ii/rtconfig.h
index 527a8523a6..700907e986 100644
--- a/bsp/nios_ii/rtconfig.h
+++ b/bsp/nios_ii/rtconfig.h
@@ -99,8 +99,6 @@
/* SECTION: lwip, a lighwight TCP/IP protocol stack */
//#define RT_USING_LWIP
-/* LwIP uses RT-Thread Memory Management */
-#define RT_LWIP_USING_RT_MEM
/* Enable ICMP protocol*/
#define RT_LWIP_ICMP
/* Enable UDP protocol*/
diff --git a/bsp/nios_ii/uart.c b/bsp/nios_ii/uart.c
index 0024992725..65a22db34c 100644
--- a/bsp/nios_ii/uart.c
+++ b/bsp/nios_ii/uart.c
@@ -80,7 +80,7 @@ static rt_size_t rt_uart_write(rt_device_t dev, rt_off_t pos, const void* buffer
return size;
}
-static rt_err_t rt_uart_control(rt_device_t dev, rt_uint8_t cmd, void *args)
+static rt_err_t rt_uart_control(rt_device_t dev, int cmd, void *args)
{
return RT_EOK;
}