summaryrefslogtreecommitdiff
path: root/components/drivers
AgeCommit message (Collapse)Author
2014-07-31add more SPI device driver.aozima
2014-07-18[Drivers] re-write serial framework.bernard
2014-07-131. Fix some spell error;shaolin
2. Fix data transfer size calculate error issue;
2014-07-13[Drivers] Add workqueue implementation.bernard
2014-07-10[Drivers] Make code cleanup in serial framework.bernard
2014-04-06[USB]fix rt_usbd_set_config() BUG which set the USB device to configuration ↵weety
state before enumerating the device.
2014-03-04[DeviceDrivers] Add watchdog driver frame workbernard
2014-03-04Merge branch 'master' of https://github.com/RT-Thread/rt-threadshaolin
2014-03-041.replace API prefix usb* with usbh* in USB host stack to distinct with USB ↵shaolin
device stack; 2.adjust some viable and micro name 3.some other small fix
2014-03-03Revert "Merge pull request #241 from bright-pan/master"Grissiom
This reverts commit 5aeedc4f3a3c3fcfffb0cd4a474f5faa75053839, reversing changes made to 3d80e414ff6c03ff04fecb914e7aa9b3fb535e03. This merge breaks every uart driver in all BSPs. @bright-pan , is there any way to get this done without breaking existing code?
2014-02-28Fix rt_serial_control() bug for customized command and indent the codeBright Pan
2014-02-26Use DeviceDriver ringbuffer.Bright Pan
Add hardware flow support. Use new struct serial_ringbuffer.
2014-02-16Update USB Device Stack to support more device controllers;shaolin
Pass USB CV test verification; Code cleanup;
2013-12-30[Drivers] Fix the block start issue in MTD Nand operatorsBernard Xiong
2013-12-29[Drivers] Add more debug utilities in MTD nandbernard
2013-10-25Revert "serial: set the errno if and only if in thread context"Grissiom
This reverts commit 07bd09fc0fc256e5c53ad3c6157802fd94c9910c. The validation of the context is done with in `rt_set_errno`. So it's safe to call it here.
2013-10-25serial: set the errno if and only if in thread contextGrissiom
The errno is associated with threads. It will crash the thread if we set it in interrupt context.
2013-10-25serial: do onthing if the size of read/write is zeroGrissiom
Return early if the size is 0 as there is nothing to do.
2013-10-23device/pipe: add a control cmd to get the space left in pipeGrissiom
2013-09-24notification function: rt_err_t (*tx_complete)(rt_device_t dev, voidjoyhope
*buffer) with buffer pointer
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-07-25Merge pull request #135 from reynoldxu/K60FxxxxBernard Xiong
K60 fxxxx
2013-07-25remove a var for INT_TX.reynoldxu
2013-07-24fix a bug in rt_hw_uart_init() where u CAN NOT init some feature.reynoldxu
2013-07-24add initialization debug codebernard
2013-06-29reformat the coding style in usbdevice/core/core.cyiyue.fang
2013-06-28additional updateyiyue.fang
2013-06-28Embedded GPLv2 license in driversyiyue.fang
2013-06-23Add component initialization.Bernard Xiong
2013-06-15udisk can be ejectheyuanjie87
2013-06-11usbdevice/core: cope with some buggy drivers on USB_MSG_DATA_NOTIFYGrissiom
Some driver will emit USB_MSG_DATA_NOTIFY before the USB get configured. Filter out those events.
2013-06-06usb: add USB_MSG_PLUG_OUT eventGrissiom
When the core received an USB_MSG_PLUG_OUT event, it will stop all the classes. This make a chance that the classes could get rid off doing useless stuff while the USB cable is plugged out.
2013-05-30return correct length of LangID string to hostheyuanjie87
2013-05-25use __rt_ffs instead of ffsweety
2013-05-25Merge pull request #95 from grissiom/vcomqiuyiuestc
usbdevice/core: add reset function to support hotplug
2013-05-25usbdevice/core: add reset function to support hotplugqiuyiuestc
When the USB got RESET packet from the host and the address is setup, all the classes will got reset. The reset is done by class stop and than class run. So the classes should reset their internal state in class_{run,stop}. Besides, the USB device driver could post a USB_MSG_RESET message on every RESET packet.
2013-05-25Merge pull request #94 from grissiom/vcomqiuyiuestc
cdc_vcom: reset the vcom state in proper cases
2013-05-25cdc_vcom: reset the vcom state in proper casesGrissiom
Reset the vcom state in class_{run,stop} and when the PC is not receiving data from me.
2013-05-23make Host can halt endpointsheyuanjie87
2013-05-17Merge pull request #90 from heyuanjie87/ForPullRequestqiuyiuestc
For pull request
2013-05-17fix spelling error.aozima