summaryrefslogtreecommitdiff
path: root/components/drivers/src/ringbuffer.c
AgeCommit message (Collapse)Author
2015-01-23 [Driver/ringbuffer]: Fix put_force bugBright Pan
OXape reports: http://www.rt-thread.org/phpBB3/topic3939.html driver/ringbuffer: when data length is bigger than space length for rb, the read_index in rb is not update. When length > space, update the read_index, the bug can be fix, and works fine.
2013-08-19ringbuffer: add put_force and putchar_force APIGrissiom
Add the APIs that will discard the old data when rb is full.
2013-08-19ringbuffer: fix the ambiguous nameGrissiom
RT_RINGBUFFER_SIZE could mean "the size of the whole buffer", "the size of the empty space" or "the size of the data". Moreover, it's never a micro anymore. Change it to rt_ringbuffer_data_len before it's too late. Also, RT_RINGBUFFER_EMPTY is changed to rt_ringbuffer_space_len.
2013-06-28Embedded GPLv2 license in driversyiyue.fang
2013-05-08ringbuffer: format the code to a more symmetric structureGrissiom
2013-05-08reimplement ringbufferGrissiom
The new implementation use the mirroring method to distinguish full buffer and the empty buffer. It also support buffers of arbitrary size.
2012-12-26fixed the coding style in components/drivers/src[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2529 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-22fixed the coding style in the components/drivers[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2431 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-02fixed coding style in component/drivers/src[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2384 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-30Remove rt_ringbuffer_get_datasize function.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2314 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-30Add pipe, data queue implementation; Fix the issue which leaks one item in ↵[email protected]
the available data of ring buffer. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2313 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-02change rt_memcpy to memcpy in ringbuffer implementation.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2199 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-23Added device driver's IPC.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2098 bbd45198-f89e-11dd-88c7-29a3b14d5316