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

Function _uart_dma_tran

bsp/k230/drivers/interdrv/uart/drv_uart.c:307–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307static rt_ssize_t _uart_dma_tran(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction)
308{
309 rt_ssize_t len;
310 if (RT_SERIAL_DMA_TX == direction)
311 {
312 len = _uart_dma_write(serial, (void*)buf, size);
313 }
314 rt_hw_serial_isr(serial, RT_SERIAL_EVENT_TX_DMADONE);
315 return len;
316}
317#endif
318
319#define write32(addr, val) writel(val, (void*)(addr))

Callers

nothing calls this directly

Calls 2

_uart_dma_writeFunction · 0.85
rt_hw_serial_isrFunction · 0.50

Tested by

no test coverage detected