MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / uart_input_int

Function uart_input_int

bsp/hc32/tests/test_uart_v2.c:120–126  ·  view source on GitHub ↗

INT接收数据回调函数 */

Source from the content-addressed store, hash-verified

118
119/* INT接收数据回调函数 */
120static 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/* 发送完成回调函数 */
129static rt_err_t uart_ouput(rt_device_t dev, void *buffer)

Callers

nothing calls this directly

Calls 1

rt_sem_releaseFunction · 0.85

Tested by

no test coverage detected