aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/pwr.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mit.edu>2011-09-18 15:39:28 -0400
committerRJ Ryan <rryan@mit.edu>2011-09-18 15:39:28 -0400
commit7cb0bf6923fe613016cd83c511187539e0709af1 (patch)
tree82ab48f7f6160f508ad4d84447bf05fb3bbdb525 /libmaple/pwr.h
parenta9f14657020161fe8798e23489ce7b9489bbe815 (diff)
downloadlibrambutan-7cb0bf6923fe613016cd83c511187539e0709af1.tar.gz
librambutan-7cb0bf6923fe613016cd83c511187539e0709af1.zip
Fix memory alignment of USB descriptor structures.
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>
Diffstat (limited to 'libmaple/pwr.h')
0 files changed, 0 insertions, 0 deletions