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

Disable USB pullup when stopping USB #6

Merged
merged 1 commit into from
Jan 25, 2022

Commits on Mar 1, 2021

  1. Disable USB pullup when stopping USB

    It turns out that stopping the USB peripheral does not automatically
    reset this pullup, so stopping USB (e.g. through USBDevice.detach())
    would let the pullup enabled, making the USB host think the board was
    still connected (but any subsequent communication would fail).
    Additionally, this would use around 300μA of current.
    
    This is a bug in the USB HAL used. This commit backports a small change
    from the HAL v1.11.3 to fix this.
    
    This fixes GrumpyOldPizza#171
    matthijskooijman committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    3d47e60 View commit details
    Browse the repository at this point in the history