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 methods for the USB Start Of Frame interrupt #456

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

ianrrees
Copy link
Contributor

After using #398 a bit, I found that checking the SOF flag in poll() was problematic, because from the outside it's not clear whether or not the SOF flag was set.

This functionality is helpful in the context of USB classes which are always accessed in the USB ISR (working around #397). If the host isn't read/writing to the endpoint, but the device has info it wants to send, then somehow execution needs to get back in to the USB ISR.

Since the PR is so small, and the original one hasn't been updated in a while, I've made a new PR. If that's problematic, I'd be happy to re-do this as a PR against https://github.com/henrikssn/atsamd/tree/usb-sof

@ianrrees
Copy link
Contributor Author

Whoops! I forgot to add the change to thumbv7, so have updated the PR.

@bradleyharden
Copy link
Contributor

@sajattack, I haven't worked with USB at all. Do you want to take a look at this?

@sajattack
Copy link
Member

Me neither tbh. @twitchyliquid64 ?

hal/src/thumbv7em/usb/bus.rs Outdated Show resolved Hide resolved
hal/src/thumbv6m/usb/bus.rs Outdated Show resolved Hide resolved
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.

5 participants