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

SN32: USB wakeup and interrupt handling cleanup #376

Merged
merged 3 commits into from
Jul 21, 2023

Conversation

dexter93
Copy link
Contributor

Fixes

  • host remote wakeup
  • potential bad init
  • endpoints randomly failing

Previously a device which attempted to wake a sleeping host would not be
notified about the resumed operation and thus stay suspended for ever.

This is due to the fact that only a host initiated wakeup would trigger
a interrupt. As a workaround we use the SOF interrupt which is enabled
for a short amount of time to detect the resume of the bus and wakeup
the device.
Leftover Sonix reference code cleanup. Sometimes when there is traffic
on more than 1 ep's packets would be dropped before they could be handled.
Clearing the status flags after handling them takes care of it.
@fpoussin fpoussin merged commit 5b4836c into ChibiOS:chibios-21.11.x Jul 21, 2023
1 check failed
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