Skip to content

Commit 92f26b7

Browse files
PermissionDenied7335mysterywolf
authored andcommitted
[drivers] fixed a minor typo in the comments of dev_serial_v2.c
1 parent 945114f commit 92f26b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/serial/dev_serial_v2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ static rt_ssize_t _serial_fifo_tx_nonblocking(struct rt_device *dev,
599599
rt_hw_interrupt_enable(level);
600600

601601
rt_uint8_t *put_ptr = RT_NULL;
602-
/* Get the linear length buffer from rinbuffer */
602+
/* Get the linear length buffer from ringbuffer */
603603
tx_fifo->put_size = rt_serial_get_linear_buffer(&(tx_fifo->rb), &put_ptr);
604604
/* Call the transmit interface for transmission */
605605
serial->ops->transmit(serial,
@@ -1624,7 +1624,7 @@ void rt_hw_serial_isr(struct rt_serial_device *serial, int event)
16241624
tx_fifo->activated = RT_TRUE;
16251625

16261626
rt_uint8_t *put_ptr = RT_NULL;
1627-
/* Get the linear length buffer from rinbuffer */
1627+
/* Get the linear length buffer from ringbuffer */
16281628
tx_fifo->put_size = rt_serial_get_linear_buffer(&(tx_fifo->rb), &put_ptr);
16291629
/* Call the transmit interface for transmission again */
16301630
serial->ops->transmit(serial,

0 commit comments

Comments
 (0)