[fingbuffer] fix a typo (#6075)
This commit is contained in:
parent
70bd55fea5
commit
fb941e6d8d
|
@ -72,7 +72,7 @@ rt_size_t rt_ringbuffer_put_force(struct rt_ringbuffer *rb, const rt_uint8_t *pt
|
||||||
rt_size_t rt_ringbuffer_putchar(struct rt_ringbuffer *rb, const rt_uint8_t ch);
|
rt_size_t rt_ringbuffer_putchar(struct rt_ringbuffer *rb, const rt_uint8_t ch);
|
||||||
rt_size_t rt_ringbuffer_putchar_force(struct rt_ringbuffer *rb, const rt_uint8_t ch);
|
rt_size_t rt_ringbuffer_putchar_force(struct rt_ringbuffer *rb, const rt_uint8_t ch);
|
||||||
rt_size_t rt_ringbuffer_get(struct rt_ringbuffer *rb, rt_uint8_t *ptr, rt_uint16_t length);
|
rt_size_t rt_ringbuffer_get(struct rt_ringbuffer *rb, rt_uint8_t *ptr, rt_uint16_t length);
|
||||||
rt_size_t rt_ringbuffer_peak(struct rt_ringbuffer *rb, rt_uint8_t **ptr);
|
rt_size_t rt_ringbuffer_peek(struct rt_ringbuffer *rb, rt_uint8_t **ptr);
|
||||||
rt_size_t rt_ringbuffer_getchar(struct rt_ringbuffer *rb, rt_uint8_t *ch);
|
rt_size_t rt_ringbuffer_getchar(struct rt_ringbuffer *rb, rt_uint8_t *ch);
|
||||||
rt_size_t rt_ringbuffer_data_len(struct rt_ringbuffer *rb);
|
rt_size_t rt_ringbuffer_data_len(struct rt_ringbuffer *rb);
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,7 @@ RTM_EXPORT(rt_ringbuffer_get);
|
||||||
*
|
*
|
||||||
* @return Return the size of the ring buffer.
|
* @return Return the size of the ring buffer.
|
||||||
*/
|
*/
|
||||||
rt_size_t rt_ringbuffer_peak(struct rt_ringbuffer *rb, rt_uint8_t **ptr)
|
rt_size_t rt_ringbuffer_peek(struct rt_ringbuffer *rb, rt_uint8_t **ptr)
|
||||||
{
|
{
|
||||||
rt_size_t size;
|
rt_size_t size;
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ rt_size_t rt_ringbuffer_peak(struct rt_ringbuffer *rb, rt_uint8_t **ptr)
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
RTM_EXPORT(rt_ringbuffer_peak);
|
RTM_EXPORT(rt_ringbuffer_peek);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Put a byte into the ring buffer. If ring buffer is full, this operation will fail.
|
* @brief Put a byte into the ring buffer. If ring buffer is full, this operation will fail.
|
||||||
|
|
Loading…
Reference in New Issue