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

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Aug 22, 2024

This adds support for USB1 or USB0 for LPC55xx devices.

PR includes:

  • USB standard descriptor support for RHPORT1
  • USB_SRAM access for LPC55xx
  • TinyUSB clocks/pins and interrupt configuration for USB

Signed-off-by: Jerzy Kasenberg [email protected]

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]>
USB_SRAM region is required when USB1 (High Speed)
is to be used.

Signed-off-by: Jerzy Kasenberg <[email protected]>
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]>
This adds code required by TinyUSB to configure
USB clocks, pins and interrupts.

Signed-off-by: Jerzy Kasenberg <[email protected]>
@github-actions github-actions bot added USB All USB work should have this label size/m labels Aug 22, 2024
@kasjer kasjer marked this pull request as ready for review August 23, 2024 07:30
@kasjer kasjer merged commit 6a86c2b into apache:master Sep 10, 2024
19 checks passed
@kasjer kasjer deleted the kasjer/tinyusb-lpc55 branch September 10, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/m USB All USB work should have this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants