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

Function uart_input_dma

bsp/hc32/tests/test_uart_v1.c:74–89  ·  view source on GitHub ↗

DMA接收数据回调函数 */

Source from the content-addressed store, hash-verified

72
73/* DMA接收数据回调函数 */
74static rt_err_t uart_input_dma(rt_device_t dev, rt_size_t size)
75{
76 struct rx_msg msg;
77 rt_err_t result;
78
79 msg.dev = dev;
80 msg.size = size;
81
82 result = rt_mq_send(&rx_mq, &msg, sizeof(msg));
83 if (result == -RT_EFULL)
84 {
85 /* 消息队列满 */
86 rt_kprintf("message queue full!\n");
87 }
88 return result;
89}
90
91/* INT接收数据回调函数 */
92static rt_err_t uart_input_int(rt_device_t dev, rt_size_t size)

Callers

nothing calls this directly

Calls 2

rt_mq_sendFunction · 0.85
rt_kprintfFunction · 0.85

Tested by

no test coverage detected