Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add packing/progmem attribute to usb descriptor structs #71

Open
bnewbold opened this issue Feb 7, 2013 · 0 comments
Open

add packing/progmem attribute to usb descriptor structs #71

bnewbold opened this issue Feb 7, 2013 · 0 comments

Comments

@bnewbold
Copy link
Contributor

bnewbold commented Feb 7, 2013

Original author: [email protected] (November 16, 2010 09:36:30)

the descriptors for the virtual com port and the bootloader in
libmaple/core/usb/descriptor.h/c and maple-bootloader/descriptors.h/c can be made into more organized fielded structs as long as the packing decorator is used.

this was tried before without the packing decorator and, due to padding, the descriptors were malformed

additionally generic support for statically locating structs in flash (as opposed to ram) can be made easily and added as a progmem macro as in avr-gcc. this was done for the k1, but the linker mods never made it into the lib maple linkers.

Original issue: http://code.google.com/p/leaflabs/issues/detail?id=32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant