Defines TUP_RHPORT_HIGHSPEED for OPT_MCU_STM32H7 #2853
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the PR
Adds a necessary define for
OPT_MCU_STM32H7
Additional context
I'm attempting to get tusb running on the STM32H7B3I-DK. While this doesn't totally solve my issues, I did notice that without this
#define
, if I hadThen I would wind up with
TUD_OPT_HIGH_SPEED == 0
tinyusb/src/tusb_option.h
Line 302 in 8b1e40c
which would ultimately cause
phy_fs_init
to be called:tinyusb/src/portable/synopsys/dwc2/dcd_dwc2.c
Lines 664 to 668 in 8b1e40c
Unfortunately I don't have any of the supported h7 boards to double check this against, however so long as they support both FS/HS I believe this change is correct for them. There also seems to still be a major bug in getting things to work with my h7b3i board, so I will keep this as a draft for now until someone has a chance to test it with the boards that it should work properly for.