[drivers] fixed a minor typo in the comments of dev_serial_v2.c

This commit is contained in:
PermissionDenied7335 2024-11-24 19:19:28 +08:00 committed by Meco Man
parent 945114fd59
commit 92f26b7ad2
1 changed files with 2 additions and 2 deletions

View File

@ -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,