INT接收数据回调函数 */
| 90 | |
| 91 | /* INT接收数据回调函数 */ |
| 92 | static rt_err_t uart_input_int(rt_device_t dev, rt_size_t size) |
| 93 | { |
| 94 | /* 串口接收到数据后产生中断,调用此回调函数,然后发送接收信号量 */ |
| 95 | rt_sem_release(&rx_sem); |
| 96 | |
| 97 | return RT_EOK; |
| 98 | } |
| 99 | |
| 100 | /* 发送完成回调函数 */ |
| 101 | static rt_err_t uart_ouput(rt_device_t dev, void *buffer) |
nothing calls this directly
no test coverage detected