summaryrefslogtreecommitdiff
path: root/components/drivers
AgeCommit message (Collapse)Author
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
2013-05-17move initial alarm event & mutex in system init.aozima
2013-05-17format code by Astyle.aozima
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-11Merge pull request #86 from grissiom/serial-rb-sizeBernard Xiong
serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer.
2013-05-12serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer.Bernard Xiong
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-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-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-17Add RT_MTD_ESRC definitions.Bernard Xiong
Add RT_MTD_ESRC definitions. If the source page has issue when copying a page, the low level can return this error code.
2013-01-11Correct macro definitionheyuanjie87
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-09move the define related to Mass to mstorage.hheyuanjie87
2013-01-09allows the user to custom PID and VID;heyuanjie87
add a dcd operation to send status in control transfer
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-31添加RNDIS定义[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2578 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-30change inferface handler parameter[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2565 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-28Add BAUD_RATE_4800 definition.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2538 bbd45198-f89e-11dd-88c7-29a3b14d5316
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