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

stm32g0b1: USB driver does not have vbus detection #3740

Open
drbartling opened this issue Jan 7, 2025 · 1 comment
Open

stm32g0b1: USB driver does not have vbus detection #3740

drbartling opened this issue Jan 7, 2025 · 1 comment

Comments

@drbartling
Copy link

usb::Driver::new() does not take an input pin for vbus detection.
Without vbus detection we are unable to get a Disconnect error from read_packet().

As application currently need to use timeouts to check for disconnection and these can't be guaranteed to give correct results at all times.

To fix this, we want to add an Option<ExtiInput> to the usb::Driver::new() function call as a breaking change.

References:
https://matrix.to/#/!YoLPkieCYHGzdjUhOK:matrix.org/$Dh-en2iZjDp-z_24twqmlorKo0lPJsk9RupKxCdHOlk?via=matrix.org&via=beeper.com&via=mozilla.org

@seijikun
Copy link

seijikun commented Jan 12, 2025

Got the same problem with self-powered ESP32S3 devices.
This describes how that's normally handled in esp-idf.

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

No branches or pull requests

2 participants