[Drivers] re-write serial framework.

This commit is contained in:
bernard
2014-07-18 06:45:54 +08:00
parent fc6747ef6c
commit c45f5a2490
14 changed files with 542 additions and 403 deletions
+1 -1
View File
@@ -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