Skip to content

Added macros to alias the endpoint callback functions to support configurability #979

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

Merged
merged 1 commit into from
Apr 8, 2015

Conversation

jeremybrodt
Copy link
Contributor

Macros exist in each of the USBEndpoints_.h files for assigning default endpoints for bulk, interrupt and isochronous functions. These macros are used by the various device classes. The callback functions in the classes, however, are hard coded to specific endpoint numbers. I have added additional macros to alias the callback functions to ensure that they match the assigned endpoints for a given target.

All currently supported USBDevice targets have used the same endpoint assignments, so no problem has arisen. We are currently working on adding a new target in which the endpoint assignments will be different from the other targets and encountered this issue.

0xc0170 added a commit that referenced this pull request Apr 8, 2015
USB - Add macros to alias the endpoint callback functions to support configurability
@0xc0170 0xc0170 merged commit 158cbeb into ARMmbed:master Apr 8, 2015
@jeremybrodt jeremybrodt deleted the usbcallbacks branch April 8, 2015 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants