67 Commits

Author SHA1 Message Date
tyustli
d8eb0cfc1e fix kernel and framework no cast type error 2019-06-18 20:09:19 +08:00
EvalZero
83b6260b3f [components][workqueue]improve delayed work for reinit. 2019-04-22 11:43:45 +08:00
EvalZero
c3ee1be7ee [components][drivers][workqueue] increase the default stack size of the workqueue thread. 2019-04-03 18:26:55 +08:00
Bernard Xiong
2c8fb7022e
Merge pull request #2526 from BernardXiong/fix_pipe
[libc] Fix the unamed pipe close issue
2019-04-01 18:10:44 +08:00
Bernard Xiong
ff00378728 [libc] Fix the unamed pipe close issue 2019-03-31 15:21:49 +08:00
EvalZero
c7ccb4f532 [components][drivers][workqueue] add system default workqueue and delayed work. 2019-03-30 14:29:30 +08:00
misonyo
e02d6e616b [driver/ringbuffer]illegal access to freed memory 2019-01-21 21:59:39 +08:00
armink
74232f2de4 [DeviceDriver][rbb] Add some comments and rt_rbb_blk_size/rt_rbb_blk_buf API.
Signed-off-by: armink <armink.ztl@gmail.com>
2018-11-22 18:08:12 +08:00
Bernard Xiong
2c0640a178 [license] Change license to Apache. 2018-10-14 19:37:18 +08:00
armink
dff8a2c513 [DeviceDriver] Add rbb (ring block buffer) data structure. 2018-09-12 08:59:58 +08:00
neverxie
3a83e5524f [components][pipe] Fix 'pipe' command close bug when open failed. 2018-08-11 18:45:18 +08:00
Bernard Xiong
0cac9afc4b [Kernel] clean code for indentation. 2018-06-26 12:02:03 +08:00
Bernard Xiong
ef132f3c94 [Kernel] clean code for indentation. 2018-06-26 11:57:20 +08:00
Bernard Xiong
a1a56ce1d1 [Kernel] Add flag in wait queue and fix wakeup issue. 2018-06-26 11:19:38 +08:00
armink
570ae751be [components][drivers] Add irq lock to rt_wqueue_wait. 2018-06-12 17:10:20 +08:00
Bernard Xiong
884fb70fe9 [Kernel] Add device ops feature. 2018-06-10 17:59:17 +08:00
liang yongxiang
cc81b47be2 [components] fixed signed/unsigned mismatch warning 2018-04-09 12:05:51 +08:00
tangyuxin
5b31545970 [drivers]Fix put_force bug 2018-03-25 07:54:31 +08:00
Bernard Xiong
00c6e81ecc [DeviceDrivers] fix type unknown issue in pipe 2017-12-31 23:52:27 +08:00
BernardXiong
8246da645d [DeviceDrivers] fix the compiling warning. 2017-12-31 14:45:43 +08:00
bernard
09f2d42e5a [DeviceDrivers] Add device API in pipe device. 2017-12-29 22:33:39 +08:00
JasonJiaJie
ef219c20c2 [Driver][Pipe]Memory leak issue when close a pipe.
There is a memory leak issue when close a pipe.
2017-11-09 16:49:46 +08:00
bernard
a8a7d60877 [DeviceDrivers] Remove compiling warning in workqueue. 2017-10-18 09:29:30 +08:00
bernard
8a38307e2c [libc] Add RT_USING_POSIX macro.
1. Add macro check in rtdebug.h;
2. Use RT_USING_POSIX for poll/select, stdin etc.
3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
2017-10-17 22:27:06 +08:00
bernard
19aa36e830 [DeviceDrivers] Add sync mode in work queue. 2017-10-17 17:53:01 +08:00
ArdaFu
fc7abc6580 [components][drivers] Check macro "RT_USING_DFS" when using DFS relative method/functions. 2017-10-16 15:12:35 +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
Bernard Xiong
c442db81fc [DeviceDrivers] Fix the re-work issue in workqueue. 2017-02-27 00:58:11 +08:00
bernard
b4757b950f [DeviceDrivers] Add critical_work for wqueue. 2017-01-31 13:17:04 +08:00
armink
c414bdaac8 [DeviceDrivers]Modify the dataqueue comments. 2016-11-02 08:17:24 +08:00
armink
6fe47a9537 [DeviceDrivers]Improve dataqueue resume suspended thread code. Thanks for @grissiom suggestion. 2016-10-31 15:08:55 +08:00
armink
0970cf03a4 [DeviceDrivers]Reset dataqueue waiting_lwm flag when suspended_push_list is empty 2016-10-31 14:47:48 +08:00
armink
bda6543305 [DeviceDrivers]Fix dataqueue irq not resume bug. 2016-10-29 14:35:07 +08:00
armink
7860ea4f83 [DeviceDrivers]Fix dataqueue calculate put and get buffer index bug. 2016-10-19 10:54:22 +08:00
armink
f2c31eebb5 [DeviceDrivers]Fix dataqueue's bug when push data is timeout the lwm flag isn't reset. 2016-10-19 10:49:42 +08:00
Bernard Xiong
77b5098ae2 [DeviceDriver] Add more exported symbols for completion. 2015-05-11 12:33:15 +08:00
ItsEddy
16bf2e7255 [DeviceDriver] Fix inverted logic on SConscript
Remove dataqueue/pipe if not enable RT_USING_HEAP, supply the missing `not`.
2015-04-04 02:17:26 +08:00
Bernard Xiong
40db28cfec [DeviceDriver] Remove dataqueue/pipe if not enable RT_USING_HEAP 2015-03-31 06:17:49 +00:00
KodakWang
29fd52dfb8 Update completion.c
fix: completion wait after, maybe can't clean the flag.
2015-03-24 15:54:08 +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
Bernard Xiong
0ad17f462d [DeviceDrivers] Add modification under Linux 2014-08-04 16:40:40 +08:00
bernard
005014e7d0 [Drivers] Add workqueue implementation. 2014-07-13 07:27:57 +08:00
Grissiom
0feefc03b6 device/pipe: add a control cmd to get the space left in pipe 2013-10-23 01:43:18 +08:00
Grissiom
246bdde8de dev/portal: fix bug in portal callback forwarding
When forwarding rx/tx callback from the underlaying device(pipe), the
"dev" argument should be the portal. So the portal callback could think
itself as called.
2013-08-22 16:43:06 +08:00
Grissiom
824261d3bc dev/portal: add checks on oflag
It does not make sense to open portal without a flag. One should open a
portal with RT_DEVICE_OFLAG_RDWR in most cases.
2013-08-22 15:12:00 +08:00
Grissiom
6e676e7754 dev/portal: implement portal device
Portal is a device that connect devices. Currently, you can only connect
pipes in portal. Pipes are unidirectional. But with portal, you can
construct a bidirectional device with two pipes.
2013-08-20 12:54:43 +08:00
Grissiom
7e68096a88 dev/pipe: make pipe a type of device
Pipe have many differences with char device. The main difference is
altough pipe have both read and write, it is unidirectional in nature.
2013-08-20 10:16:55 +08:00
Grissiom
0340300f89 dev/pipe: cleanup 2013-08-19 16:25:17 +08:00
Grissiom
e8cca2315a dev/pipe: call rx_indicate the time we resume reader
Some reader(FinSh again) would like to block on a semaphore which is
released in rx_indicate. So we should invoke rx_indicate in
_rt_pipe_resume_reader.
2013-08-19 15:57:59 +08:00
Grissiom
d683d32bd5 device/pipe: add nonblocking read/write and force write mode
The previous implementation will always blocks the reader/writer.
However, at least FinSh would expect the device to be nonblocking ---
read should return 0 when there is no data in it.
2013-08-19 15:35:56 +08:00