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 raw USB example using control transfers #2143

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

adamgreig
Copy link
Contributor

@adamgreig adamgreig commented Nov 5, 2023

I based this off the usb_cdc example and just changed it to implement some control transfer handling directly. However, the host-to-device transfers start at byte 4 of the data the host sent, and then have 4 junk bytes at the end.

The bug must be in the embassy-stm32 usb_otg driver, as this example works OK on G4 (which is the plain usb driver).

@xoviat xoviat added this pull request to the merge queue Nov 5, 2023
Merged via the queue into embassy-rs:main with commit c4a8b79 Nov 5, 2023
@adamgreig adamgreig deleted the raw-usb-example branch November 5, 2023 17:41
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