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:
chao an
2025-01-23 15:03:29 +08:00
committed by Xiang Xiao
parent 45f2a4b2cb
commit 5de6f7f6fd

View File

@@ -452,6 +452,7 @@ static void uart_ram_wdog(wdparm_t arg)
{
dev->dmatx.nbytes = dev->dmatx.length + dev->dmatx.nlength;
uart_xmitchars_done(dev);
uart_ram_dmatxavail(dev);
}
/* When the read and write pointers of the rx buffer are different,