summaryrefslogtreecommitdiff
path: root/components/drivers/usb/usbdevice
AgeCommit message (Collapse)Author
2014-07-131. Fix some spell error;shaolin
2. Fix data transfer size calculate error issue;
2014-04-06[USB]fix rt_usbd_set_config() BUG which set the USB device to configuration ↵weety
state before enumerating the device.
2014-02-16Update USB Device Stack to support more device controllers;shaolin
Pass USB CV test verification; Code cleanup;
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-06-29reformat the coding style in usbdevice/core/core.cyiyue.fang
2013-06-28Embedded GPLv2 license in driversyiyue.fang
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-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-17add usb stateheyuanjie87
2013-05-12usbdevice/core: use static message queueGrissiom
Although currently the only message send to the queue is struct udev_msg, in order to keep backward compacity and for extention in the future, we set the size of message to 32.
2013-05-12usbdevice/core: use static thread instead of dynamic threadGrissiom
It also add two configurations for the USB device even loop thread: RT_USBD_THREAD_STACK_SZ to set the stack size, default to 2048 RT_USBD_THREAD_PRIO to set the priority, default to 8 You can overwrite the default values in rtconfig.h
2013-05-12cdc_vcom: not to start sending data when the data is already sendingGrissiom
We start the sending transaction in SOF handler. But if the data is already sending, start an other transaction will cause data lose. Implement a state machine is cdc_vcom and avoid that.
2013-05-12usbdevice/core: small optimization on the event loopGrissiom
Sort the switch cases by the frequency of the events.
2013-05-10cdc_vcom: send data as many as possibleGrissiom
The data filled into dcd_ep_write does not to be limited by MaxPacketSize.
2013-05-10usbdevice/core: misc cleanupGrissiom
2013-05-10cdc_vcom: send a zero-length-packet at the end is transactionGrissiom
2013-05-09cdc_vcom: fix the bug that use ringbuffer pool as usb packet bufferGrissiom
This commit set the buffer for packet to CDC_MaxPacketSize which is a reasonable value for it. However, maybe we should make CDC_{RX,TX}_BUFSIZE configurable as well.
2013-05-04usbdevice/core/core.c: fix garbage value bugGrissiom
This could crash the program with -O1 and -O2 in MDK.
2013-01-24class driver can custom string descriptionheyuanjie87
2013-01-17fixed the string descriptor send to host more than actualheyuanjie87
2013-01-17handle standard request to interface that defined in classheyuanjie87
2013-01-11revert some define to usb_common.hheyuanjie87
2013-01-09revert the defineheyuanjie87
2013-01-09allows the user custom PID and VIDheyuanjie87
2013-01-09use new interface to send status in control transferheyuanjie87
2013-01-09move the define related to Mass to here;heyuanjie87
remove product ID
2013-01-09allows the user custom PID and VIDheyuanjie87
2013-01-09remove product IDheyuanjie87
2013-01-08Re-normalizing the repoMing, Bai
2012-12-31添加RNDIS[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2580 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-31添加RNDIS[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2579 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-30change inferface handler parameter; add a protocol define[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2564 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-30change inferface handler parameter[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2563 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-20fixed the coding style of RT_DEBUG_LOG[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2500 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-17add a new fuction to config the desc in altsetting[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2490 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-17Descriptor is no longer using the global variable[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2489 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-16fixed a warning[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2486 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-14set endpoint buffer to RT_NULL[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2480 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-12change endpoint and class handler[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2477 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-12change endpoint and class handler[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2476 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-08csw structure address alignment[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2468 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-01Single block write data[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2463 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-26output log when no disk[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2450 bbd45198-f89e-11dd-88c7-29a3b14d5316