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

USB: refactor to xmit-based API #17064

Merged
merged 10 commits into from
Nov 17, 2021
Merged

USB: refactor to xmit-based API #17064

merged 10 commits into from
Nov 17, 2021

Commits on Nov 16, 2021

  1. usbdev: Refactor to xmit API

    This API change refactors the usbdev API to supply buffers via the
    usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
    separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
    be used when defining buffers used for endpoints to adhere to the DMA alignment
    restrictions often required with usb peripherals.
    
    Main advantage is that the usbdev peripherals no longer have to allocate
    oversized buffers for the endpoint data, potentially saving multiple KiB
    of unused buffer space. These allocations are now the responsibility of
    the individual USB interfaces in the firmware
    bergzand committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    59e85cf View commit details
    Browse the repository at this point in the history
  2. usbdev: Refactor to xmit API

    This API change refactors the usbdev API to supply buffers via the
    usbdev_ep_xmit function. This changes from the usbdev_ep_ready call to allow
    separate buffers per call. An usbdev_ep_buf_t pseudotype is available and must
    be used when defining buffers used for endpoints to adhere to the DMA alignment
    restrictions often required with usb peripherals.
    
    Main advantage is that the usbdev peripherals no longer have to allocate
    oversized buffers for the endpoint data, potentially saving multiple KiB
    of unused buffer space. These allocations are now the responsibility of
    the individual USB interfaces in the firmware
    bergzand committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    597f1d1 View commit details
    Browse the repository at this point in the history
  3. usbdev_mock: Adapt to xmit API

    Includes the adaptations needed in the test application
    bergzand committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    f8e7e2f View commit details
    Browse the repository at this point in the history
  4. nrf52/usb: Adapt to xmit API

    bergzand committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    617027a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c81df90 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a6b6f43 View commit details
    Browse the repository at this point in the history
  7. USBUS: Adapt to xmit API

    Converts the control endpoint to xmit API
    bergzand committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    7d9a177 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1a0bc3d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5455c40 View commit details
    Browse the repository at this point in the history
  10. USBUS/hid: Adapt to xmit API

    bergzand committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    587d25a View commit details
    Browse the repository at this point in the history