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

LPC55xx add USB support #3298

Merged
merged 4 commits into from
Sep 10, 2024
Merged

LPC55xx add USB support #3298

merged 4 commits into from
Sep 10, 2024

Commits on Aug 22, 2024

  1. mcu/lpc55: Enable MPU for USB_SRAM access

    USB_SRAM by default requires aligned access as
    it is mapped same way peripherals are accessed.
    
    To overcome this limitation (needed by TinyUSB)
    MPU has to be enabled that configures USB_SRAM
    so there is no alignment limitations.
    
    Without this TinyUSB implementation will not work.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
    kasjer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    5ac328c View commit details
    Browse the repository at this point in the history
  2. mcu/lpc55: Add USB_SRAM to generated linker script

    USB_SRAM region is required when USB1 (High Speed)
    is to be used.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
    kasjer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    de5b4c3 View commit details
    Browse the repository at this point in the history
  3. tinyusb: Add support for USB selection

    Some MCU have more then one USB controller
    So far RHPORT0 was always used.
    Only one USB device can be configured in mynewt
    (host is not supported yet)
    Now application can decide which USB controller to use
    by specifying USBD_RHPORT: USB0 or USB1
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
    kasjer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    273851f View commit details
    Browse the repository at this point in the history
  4. tinyusb: Add support for LPC55xx devices

    This adds code required by TinyUSB to configure
    USB clocks, pins and interrupts.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
    kasjer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    8c97aeb View commit details
    Browse the repository at this point in the history