| 305 | } |
| 306 | |
| 307 | static 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)) |
nothing calls this directly
no test coverage detected