From c45f5a249089e1e453f358bcab052ddce8a8dff7 Mon Sep 17 00:00:00 2001 From: bernard Date: Fri, 18 Jul 2014 06:45:54 +0800 Subject: [Drivers] re-write serial framework. --- components/finsh/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/finsh') diff --git a/components/finsh/shell.c b/components/finsh/shell.c index ae099e7e7c..5489cedf3d 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -306,8 +306,8 @@ void finsh_thread_entry(void* parameter) #ifdef RT_USING_CONSOLE shell->device = rt_console_get_device(); RT_ASSERT(shell->device); - rt_device_open(shell->device, RT_DEVICE_OFLAG_RDWR); rt_device_set_rx_indicate(shell->device, finsh_rx_ind); + rt_device_open(shell->device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX); #else RT_ASSERT(shell->device); #endif -- cgit v1.3.1