INT接收数据回调函数 */
| 118 | |
| 119 | /* INT接收数据回调函数 */ |
| 120 | static rt_err_t uart_input_int(rt_device_t dev, rt_size_t size) |
| 121 | { |
| 122 | /* 串口接收到数据后产生中断,调用此回调函数,然后发送接收信号量 */ |
| 123 | rt_sem_release(&rx_sem); |
| 124 | |
| 125 | return RT_EOK; |
| 126 | } |
| 127 | |
| 128 | /* 发送完成回调函数 */ |
| 129 | static rt_err_t uart_ouput(rt_device_t dev, void *buffer) |
nothing calls this directly
no test coverage detected