[drivers] fixed a minor typo in the comments of dev_serial_v2.c
This commit is contained in:
parent
945114fd59
commit
92f26b7ad2
|
@ -599,7 +599,7 @@ static rt_ssize_t _serial_fifo_tx_nonblocking(struct rt_device *dev,
|
||||||
rt_hw_interrupt_enable(level);
|
rt_hw_interrupt_enable(level);
|
||||||
|
|
||||||
rt_uint8_t *put_ptr = RT_NULL;
|
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);
|
tx_fifo->put_size = rt_serial_get_linear_buffer(&(tx_fifo->rb), &put_ptr);
|
||||||
/* Call the transmit interface for transmission */
|
/* Call the transmit interface for transmission */
|
||||||
serial->ops->transmit(serial,
|
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;
|
tx_fifo->activated = RT_TRUE;
|
||||||
|
|
||||||
rt_uint8_t *put_ptr = RT_NULL;
|
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);
|
tx_fifo->put_size = rt_serial_get_linear_buffer(&(tx_fifo->rb), &put_ptr);
|
||||||
/* Call the transmit interface for transmission again */
|
/* Call the transmit interface for transmission again */
|
||||||
serial->ops->transmit(serial,
|
serial->ops->transmit(serial,
|
||||||
|
|
Loading…
Reference in New Issue