4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-01 01:30:26 +08:00

30 Commits

Author SHA1 Message Date
Meco Man
396b7da6fd [libc][time] Ensure the data types are consistent 2021-10-13 23:24:17 -04:00
guo
a98860d146
Merge pull request #4942 from Jackistang/master
[add] add commets for ringbuffer and workqueue.
2021-08-19 09:51:37 +08:00
Jackistang
4c6b4028e3 Update the comments for ringbuffer and workqueue. 2021-08-18 22:51:00 +08:00
Bernard Xiong
69cd36b5d0
Merge pull request #4905 from mysterywolf/rb
[ringbuffer] rt_ringbuffer_data_len采用局部变量承接,防止出现资源竞争
2021-08-18 19:24:13 +08:00
Jackistang
3de03a072e 修改 ringbuffer 和 workqueue 注释的语法 2021-08-18 09:44:52 +08:00
Jackistang
6173c9d7d5 fix comments error in ringbuffer and workqueue. 2021-08-17 22:44:29 +08:00
Jackistang
99de1a6220 format code 2021-08-14 14:32:58 +08:00
Jackistang
1b7468979f [ringbuffer] 添加 ringbuffer 的接口注释 2021-08-14 13:47:05 +08:00
Meco Man
619fa4d9d8 [ringbuffer] 采用局部变量,防止出现资源竞争 2021-07-31 02:20:20 +08:00
arminker
2439232c8a bugfix:write_index bug in rt_ringbuffer_put_force 2021-07-20 15:47:03 +08:00
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