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

[RP2040] usb: fix usb_lld_get_status functions #383

Merged

Commits on Nov 25, 2023

  1. rp2040: usb: fix usb_lld_get_status functions

    This fixes the USB endpoint get status functions; previously the
    (wrong) assumptions were the following:
    
    * `active` was toggled depending on whether a transaction was currently
      ongoing on the endpoint e.g., if the endpoint is "busy." What is  
      actually requested is if this endpoint is enabled at all. Therefore,
      we check the `enabled` flag in the endpoint control register.
    * `stalled` was toggled by the device itself, although this property is
      completely controlled by the host via the SET and CLEAR feature
      requests. Therefore, we check the `stalled` flag in the endpoint
      buffer control register.
    KarlK90 committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    1a1bbe6 View commit details
    Browse the repository at this point in the history