提交 9c6d8d96 编写于 作者: I ItsGettingWorse 提交者: mysterywolf

Update drv_usart.c

修复RX DMA 第一包收不到的bug
上级 11f52eeb
......@@ -170,7 +170,7 @@ static rt_err_t stm32_configure(struct rt_serial_device *serial, struct serial_c
#ifdef RT_SERIAL_USING_DMA
if (!(serial->parent.open_flag & RT_DEVICE_OFLAG_OPEN)) {
uart->dma_rx.remaining_cnt = 0;
uart->dma_rx.remaining_cnt = cfg->bufsz;
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册