summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2014-07-18 06:45:54 +0800
committerbernard <[email protected]>2014-07-18 06:45:54 +0800
commitc45f5a249089e1e453f358bcab052ddce8a8dff7 (patch)
treec5f7b1a6e234759648eca0456039a930a5435134 /components/finsh/shell.c
parentfc6747ef6c665195cf3b8fc1c40e93da60872519 (diff)
[Drivers] re-write serial framework.
Diffstat (limited to 'components/finsh/shell.c')
-rw-r--r--components/finsh/shell.c2
1 files changed, 1 insertions, 1 deletions
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