aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/usb/descriptors.h
Commit message (Collapse)AuthorAgeFilesLines
* usb: Prepare for moving some files to usb_reg_map.h.Marti Bolivar2011-10-181-1/+0
| | | | | | | | | | | | | usb_config.h: Remove usb_regs.h dependency; fix includes; add license. usb_callbacks.h: Change includes to the pieces of usb_lib/ it uses, which doesn't include usb_regs.h. descriptors.h: Remove unused usb_lib.h include. usb.h: Remove unused usb_lib.h include. Some cosmetic commenting. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Fix memory alignment of USB descriptor structures.RJ Ryan2011-09-181-91/+27
| | | | | | | | | | | | | | | A variety of USB descriptor structures have been manually "unpacked". Instead of using the struct, their members were unpacked into the struct they were nested in. Additionally sizeof()'s were commented in favor of manual calculation of structure sizes. After uncommenting these changes, the USB CDC peripheral stopped correctly configuring with the host. The root problem with the structures is that GCC is padding them. By applying __attribute__((__packed__)), these problems are fixed. I removed all the instances of the workaround I saw within the USB code. Signed-off-by: RJ Ryan <rryan@mit.edu>
* Fixing typo in libmaple/usb/descriptors.h; thanks, StephenFromNYC!Marti Bolivar2011-03-171-1/+1
| | | | http://forums.leaflabs.com/topic.php?id=687
* candidate bugfix for serialusb receive bugAJM2010-12-131-1/+24
| | | | changed USB driver to nak whenever it cant fill an entire endpoint (64B) worth of new data. The old scheme was to set receive valid as long as as the endpoint buffer wasnt full, the new scheme is to nak until it is completely empty.
* inital portability workbnewbold2010-08-251-1/+1
|
* modified the makefile to build the usb related files/removed all uintx_t to ↵AJM2010-05-201-62/+62
| | | | uintx
* moved the usb directory to its proper home in ./libmapleAJM2010-05-201-0/+202
also, removed some old usb file, bootVect.h, which setup the static table for the runtime usb lib that no longer exists and was provided by the bootloader rev 1