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 Rp2040 suspend & resume support #1020

Merged
merged 8 commits into from
Aug 18, 2021
Merged

Conversation

hathach
Copy link
Owner

@hathach hathach commented Aug 12, 2021

Describe the PR
This PR update rp2040 devvice

  • Add supsend and resume support, comment out disconnection interrupt since it is not detectable since we are forcing vbus detect
  • comment / whitespace / clean up dcd rp2040 e.g stall / clear stall
  • reset all endpoints upon bus_reset (previously only allocated once per power), however, device can dynamically change its configuration. It is better to enumerate with a clean state.

hopefully fix adafruit/circuitpython#4190, adafruit/circuitpython#5101

Additional context
Currently rp2040 force vbus detect making it difficult to distinguish between Disconnection and Suspend (both are idle bus). Disconnection can be determined by having extra GPIO to check vbus. In case of pico it is GPIO24, however, not all boards implement this on their schematics.

Note: Other MCUs such as samd and esp32s2/s3 has similar issue as well, will try to find an common API to resolve this in future PR

Screenshot from 2021-08-12 16-50-08

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.

RP2040: USB data stopping
1 participant