提交 c75867fc 编写于 作者: B bernard.xiong@gmail.com

Remove rt_ringbuffer_get_datasize function.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2314 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 4f05dd54
......@@ -146,15 +146,3 @@ rt_size_t rt_ringbuffer_getchar(struct rt_ringbuffer* rb, rt_uint8_t *ch)
}
RTM_EXPORT(rt_ringbuffer_getchar);
/**
* get available data size
*/
rt_size_t rt_ringbuffer_get_datasize(struct rt_ringbuffer* rb)
{
RT_ASSERT(rb != RT_NULL);
/* return the available size */
return rb->write_index - rb->read_index;
}
RTM_EXPORT(rt_data_queue_reset);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册