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

STM32U5 HS Support #2265

Merged
merged 1 commit into from
Oct 18, 2023
Merged

STM32U5 HS Support #2265

merged 1 commit into from
Oct 18, 2023

Conversation

bencowperthwaite
Copy link
Contributor

Added support for USB2 HS peripheral (with integrated HS PHY) on STM32U59x & STM32U5Ax chips.

Describe the PR
The latest additions to the STM32U5 family have an OTG_HS peripheral (replacing the OTG_FS peripheral).
This requires modifications to the dwc2_stm32.h to reflect the lack of OTG_FS defines and set up the HS defines correctly.
I tried to keep this looking/feeling similar to the OPT_MCU_STM32H7 case above it.

Additional context
In my tusb_config.h (for device only) I set:
#define CFG_TUSB_MCU OPT_MCU_STM32U5
#define CFG_TUSB_RHPORT1_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED)
#define CFG_TUD_MAX_SPEED OPT_MODE_HIGH_SPEED

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good, thank you

@hathach hathach merged commit dd58822 into hathach:master Oct 18, 2023
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants