This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, i have added support for USB 2.0 to the ecos usb packages, in detail: ecos/pacakges/io/usb/common/current/include/usb.h: - added device qualifier and other speed configuration descriptor - added defines for testmodes ecos/packages/io/usb/slave/current/include/usbs.h ecos/packages/io/usb/slave/current/src/usbs.c - usbs_enumeration_data has new members for other speed configurations and high- and full speed endpoints - usbs_control_endpoint has new or different members: - speed of the requested descriptors - state_change_fn receives a new parameter: current speed - current_speed stores the current usb speed - current_packet_size stores the maximum packet size allowed for the current_speed - extensions to the endpoints: - endopints have a new member index (their usb index) - new member end_packet says if the driver shall end the packet. If the packet size is a multiple of the max packet size, and end_packet is set, no zero length packet is sent or expected. So packets can be sent or received in multiple portions (e.g. 12000 bytes in a portion of 8192 bytes (end_packet = 0) and an other of 3808 (with end_packet = 1). This reduces the neccessary buffer size in the application. - enable_dma says if the driver shall use DMA for the respective endpoint. - pointer to a function that shall be called from a dsr (e.g. to handle a switch to thread context) The problem might be, that since some members and function declarations changed, old code is not compatible and needs to be updated. Torsten
Attachment:
usbs.h.diff
Description: usbs.h.diff
Attachment:
usb.h.diff
Description: usb.h.diff
Attachment:
usbs.c.diff
Description: usbs.c.diff
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |