/* Reset the ring buffer object, and clear all contents in the buffer.  */
void rt_ringbuffer_reset(struct rt_ringbuffer *rb)
/* Reset the ring buffer object, and clear all contents in the buffer.  */
void rt_ringbuffer_reset(struct rt_ringbuffer *rb)
{
    RT_ASSERT(rb != RT_NULL);
    rb->read_mirror = 0;
    rb->read_index = 0;
    rb->write_mirror = 0;
    rb->write_index = 0;
}