summaryrefslogtreecommitdiff
path: root/components/drivers/src
AgeCommit message (Collapse)Author
2017-10-18[DeviceDrivers] Remove compiling warning in workqueue.bernard
2017-10-17[libc] Add RT_USING_POSIX macro.bernard
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[DeviceDrivers] Add sync mode in work queue.bernard
2017-10-16[components][drivers] Check macro "RT_USING_DFS" when using DFS relative ↵ArdaFu
method/functions.
2017-10-15[DeviceDrivers] change cmd type.bernard
1. Change 'rt_uint8_t' type of cmd to 'int'; 2. Add waitqueue; 3. Split device ipc header files;
2017-02-27[DeviceDrivers] Fix the re-work issue in workqueue.Bernard Xiong
2017-01-31[DeviceDrivers] Add critical_work for wqueue.bernard
2016-11-02[DeviceDrivers]Modify the dataqueue comments.armink
2016-10-31[DeviceDrivers]Improve dataqueue resume suspended thread code. Thanks for ↵armink
@grissiom suggestion.
2016-10-31[DeviceDrivers]Reset dataqueue waiting_lwm flag when suspended_push_list is ↵armink
empty
2016-10-29[DeviceDrivers]Fix dataqueue irq not resume bug.armink
2016-10-19[DeviceDrivers]Fix dataqueue calculate put and get buffer index bug.armink
2016-10-19[DeviceDrivers]Fix dataqueue's bug when push data is timeout the lwm flag ↵armink
isn't reset.
2015-05-11[DeviceDriver] Add more exported symbols for completion.Bernard Xiong
2015-04-04[DeviceDriver] Fix inverted logic on SConscriptItsEddy
Remove dataqueue/pipe if not enable RT_USING_HEAP, supply the missing `not`.
2015-03-31[DeviceDriver] Remove dataqueue/pipe if not enable RT_USING_HEAPBernard Xiong
2015-03-24Update completion.cKodakWang
fix: completion wait after, maybe can't clean the flag.
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.
2014-08-04[DeviceDrivers] Add modification under LinuxBernard Xiong
2014-07-13[Drivers] Add workqueue implementation.bernard
2013-10-23device/pipe: add a control cmd to get the space left in pipeGrissiom
2013-08-22dev/portal: fix bug in portal callback forwardingGrissiom
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-22dev/portal: add checks on oflagGrissiom
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-20dev/portal: implement portal deviceGrissiom
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-20dev/pipe: make pipe a type of deviceGrissiom
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-19dev/pipe: cleanupGrissiom
2013-08-19dev/pipe: call rx_indicate the time we resume readerGrissiom
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-19device/pipe: add nonblocking read/write and force write modeGrissiom
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-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-08-19device/pipe: add rt_pipe_{init,detach}Grissiom
This provide the possibility that allocate the buffer of the ringbuffer on a specific region, instead of always mallocing it. It also bring us the benefit of using pipe device on the systems without heap.
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.
2013-01-08Re-normalizing the repoMing, Bai
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-11-01add serial DMA transmit function(beta)[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2382 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-11submit the first version usb device stack.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2344 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-05-01add "thread->error = RT_EOK;" in rt_completion_wait[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2107 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