-
Notifications
You must be signed in to change notification settings - Fork 2k
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
USB: refactor to xmit-based API #17064
Merged
Merged
Commits on Nov 16, 2021
-
This API change refactors the usbdev API to supply buffers via the usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must be used when defining buffers used for endpoints to adhere to the DMA alignment restrictions often required with usb peripherals. Main advantage is that the usbdev peripherals no longer have to allocate oversized buffers for the endpoint data, potentially saving multiple KiB of unused buffer space. These allocations are now the responsibility of the individual USB interfaces in the firmware
Configuration menu - View commit details
-
Copy full SHA for 59e85cf - Browse repository at this point
Copy the full SHA 59e85cfView commit details -
This API change refactors the usbdev API to supply buffers via the usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must be used when defining buffers used for endpoints to adhere to the DMA alignment restrictions often required with usb peripherals. Main advantage is that the usbdev peripherals no longer have to allocate oversized buffers for the endpoint data, potentially saving multiple KiB of unused buffer space. These allocations are now the responsibility of the individual USB interfaces in the firmware
Configuration menu - View commit details
-
Copy full SHA for 597f1d1 - Browse repository at this point
Copy the full SHA 597f1d1View commit details -
usbdev_mock: Adapt to xmit API
Includes the adaptations needed in the test application
Configuration menu - View commit details
-
Copy full SHA for f8e7e2f - Browse repository at this point
Copy the full SHA f8e7e2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 617027a - Browse repository at this point
Copy the full SHA 617027aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c81df90 - Browse repository at this point
Copy the full SHA c81df90View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6b6f43 - Browse repository at this point
Copy the full SHA a6b6f43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d9a177 - Browse repository at this point
Copy the full SHA 7d9a177View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a0bc3d - Browse repository at this point
Copy the full SHA 1a0bc3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5455c40 - Browse repository at this point
Copy the full SHA 5455c40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 587d25a - Browse repository at this point
Copy the full SHA 587d25aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.