Skip to content

Commit f58e947

Browse files
committed
[components/drivers/serial]add low level DMA TX config support.
1 parent 9f7cc78 commit f58e947

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/drivers/serial/serial.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ static rt_err_t rt_serial_open(struct rt_device *dev, rt_uint16_t oflag)
675675
serial->serial_tx = tx_dma;
676676

677677
dev->open_flag |= RT_DEVICE_FLAG_DMA_TX;
678+
/* configure low level device */
679+
serial->ops->control(serial, RT_DEVICE_CTRL_CONFIG, (void *)RT_DEVICE_FLAG_DMA_TX);
678680
}
679681
#endif /* RT_SERIAL_USING_DMA */
680682
else

0 commit comments

Comments
 (0)