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

Function uart_input_int

bsp/hc32/tests/test_uart_v1.c:92–98  ·  view source on GitHub ↗

INT接收数据回调函数 */

Source from the content-addressed store, hash-verified

90
91/* INT接收数据回调函数 */
92static 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/* 发送完成回调函数 */
101static 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