mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 13:55:18 +08:00
serial/uart_ram: update lower buffer offset if previous send completes
UART RAM will have probabilistic bubble time during continuous transmission. Update the offset after sending to avoid this problem. Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
@@ -452,6 +452,7 @@ static void uart_ram_wdog(wdparm_t arg)
|
|||||||
{
|
{
|
||||||
dev->dmatx.nbytes = dev->dmatx.length + dev->dmatx.nlength;
|
dev->dmatx.nbytes = dev->dmatx.length + dev->dmatx.nlength;
|
||||||
uart_xmitchars_done(dev);
|
uart_xmitchars_done(dev);
|
||||||
|
uart_ram_dmatxavail(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When the read and write pointers of the rx buffer are different,
|
/* When the read and write pointers of the rx buffer are different,
|
||||||
|
|||||||
Reference in New Issue
Block a user