mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-26 14:54:35 +08:00
[Drivers] re-write serial framework.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user