/* abort and set abort_read and abort_write to asked values.  */
static void _rb_reset(ringbuf_t *rb, int abort_read, int abort_write)
/* abort and set abort_read and abort_write to asked values.  */
static void _rb_reset(ringbuf_t *rb, int abort_read, int abort_write)
{
    return;
  }
  aos_mutex_lock(&rb->lock, AOS_WAIT_FOREVER);
  rb->readptr = rb->writeptr = rb->base;
  rb->fill_cnt = 0;
  rb->writer_finished = 0;
  rb->reader_unblock = 0;
  rb->abort_read = abort_read;
  rb->abort_write = abort_write;
  aos_mutex_unlock(&rb->lock);
}