Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
malongwei
d6c8b46dad
add 'rt_ringbuffer_peak' API
2020-11-22 14:20:02 +08:00
tyustli
d8eb0cfc1e
fix kernel and framework no cast type error
2019-06-18 20:09:19 +08:00
misonyo
e02d6e616b
[driver/ringbuffer]illegal access to freed memory
2019-01-21 21:59:39 +08:00
Bernard Xiong
2c0640a178
[license] Change license to Apache.
2018-10-14 19:37:18 +08:00
tangyuxin
5b31545970
[drivers]Fix put_force bug
2018-03-25 07:54:31 +08:00
bernard
d7087fdd3b
[DeviceDrivers] change cmd type.
...
1. Change 'rt_uint8_t' type of cmd to 'int';
2. Add waitqueue;
3. Split device ipc header files;
2017-10-15 22:56:46 +08:00
Bright Pan
2d67fe6565
[Driver/ringbuffer]: Fix put_force bug
...
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.
2015-01-23 13:27:52 +08:00
Grissiom
4919d29d69
ringbuffer: add put_force and putchar_force API
...
Add the APIs that will discard the old data when rb is full.
2013-08-19 15:32:42 +08:00
Grissiom
981d929b56
ringbuffer: fix the ambiguous name
...
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-08-19 14:12:35 +08:00
yiyue.fang
621fbdb90c
Embedded GPLv2 license in drivers
2013-06-28 00:36:54 +08:00
Grissiom
952bc0d4ef
ringbuffer: format the code to a more symmetric structure
2013-05-08 15:54:30 +08:00
Grissiom
639bd30321
reimplement ringbuffer
...
The new implementation use the mirroring method to distinguish full
buffer and the empty buffer. It also support buffers of arbitrary size.
2013-05-08 15:45:31 +08:00
dzzxzz@gmail.com
ef5c47e684
fixed the coding style in components/drivers/src
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2529 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-26 00:29:42 +00:00
dzzxzz@gmail.com
68b7e7c481
fixed the coding style in the components/drivers
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2431 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-22 08:43:40 +00:00
dzzxzz@gmail.com
1aab195a7d
fixed coding style in component/drivers/src
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2384 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-02 04:05:38 +00:00
bernard.xiong@gmail.com
c75867fc5f
Remove rt_ringbuffer_get_datasize function.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2314 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-30 08:13:53 +00:00
bernard.xiong@gmail.com
4f05dd5426
Add pipe, data queue implementation; Fix the issue which leaks one item in the available data of ring buffer.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2313 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-30 07:33:13 +00:00
bernard.xiong@gmail.com
ee546fb0d4
change rt_memcpy to memcpy in ringbuffer implementation.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2199 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-02 15:51:58 +00:00
bernard.xiong@gmail.com
da44d15132
Added device driver's IPC.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2098 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-23 06:02:28 +00:00