finsh_system_init();
finsh_set_device("uart1");-->
void finsh_set_device(char* device_name)
......
找到此设备并把回调函数设置为finsh_rx_ind 然后在finsh_rx_ind里面处理信号量
rt_device_set_rx_indicate(dev, finsh_rx_ind);
USART1_IRQHandler --> rt_hw_serial_isr
/* invoke callback */
if (device->rx_indicate != RT_NULL)
finsh_system_init();
finsh_set_device("uart1");-->
void finsh_set_device(char* device_name)
......
找到此设备并把回调函数设置为finsh_rx_ind 然后在finsh_rx_ind里面处理信号量
rt_device_set_rx_indicate(dev, finsh_rx_ind);
USART1_IRQHandler --> rt_hw_serial_isr
/* invoke callback */
if (device->rx_indicate != RT_NULL)
举报