From 92f26b7ad218a702ce7d8685579557d6ea544106 Mon Sep 17 00:00:00 2001 From: PermissionDenied7335 <54110849+PermissionDenied7335@users.noreply.github.com> Date: Sun, 24 Nov 2024 19:19:28 +0800 Subject: [PATCH] [drivers] fixed a minor typo in the comments of dev_serial_v2.c --- components/drivers/serial/dev_serial_v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/serial/dev_serial_v2.c b/components/drivers/serial/dev_serial_v2.c index 111bfbca01..18f9c8970e 100644 --- a/components/drivers/serial/dev_serial_v2.c +++ b/components/drivers/serial/dev_serial_v2.c @@ -599,7 +599,7 @@ static rt_ssize_t _serial_fifo_tx_nonblocking(struct rt_device *dev, rt_hw_interrupt_enable(level); rt_uint8_t *put_ptr = RT_NULL; - /* Get the linear length buffer from rinbuffer */ + /* Get the linear length buffer from ringbuffer */ tx_fifo->put_size = rt_serial_get_linear_buffer(&(tx_fifo->rb), &put_ptr); /* Call the transmit interface for transmission */ serial->ops->transmit(serial, @@ -1624,7 +1624,7 @@ void rt_hw_serial_isr(struct rt_serial_device *serial, int event) tx_fifo->activated = RT_TRUE; rt_uint8_t *put_ptr = RT_NULL; - /* Get the linear length buffer from rinbuffer */ + /* Get the linear length buffer from ringbuffer */ tx_fifo->put_size = rt_serial_get_linear_buffer(&(tx_fifo->rb), &put_ptr); /* Call the transmit interface for transmission again */ serial->ops->transmit(serial,