-
Notifications
You must be signed in to change notification settings - Fork 2k
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
drivers/usbdev_synopsys_dwc2: small fixes #18759
Merged
benpicco
merged 5 commits into
RIOT-OS:master
from
gschorcht:drivers/usbdev_synopsys_dwc2_fixes
Oct 18, 2022
Merged
drivers/usbdev_synopsys_dwc2: small fixes #18759
benpicco
merged 5 commits into
RIOT-OS:master
from
gschorcht:drivers/usbdev_synopsys_dwc2_fixes
Oct 18, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The `usbdev_synopsys_dwc2 driver` requires the `ztimer_msec` module and is therefore responsible for pulling it in.
The `usbdev_synopsys_dwc2 driver` requires the `ztimer_msec` module and is therefore responsible for pulling it in. Therefore, the dependency on `ztimer_msec` can be removed here.
`MODULE_USBDEV_SYNOPSYS_DWC2` depends already on `HAS_PERIPH_USBDEV`.
Since the total USB OTG FIFO size is a hardware propertie, it must not be overridable.
Use `DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE` instead of `USB_OTG_FS_TOTAL_FIFO_SIZE` since the latter is only defined in the vendor headers for STM32 MCUs. The STM32-specific problem that `USB_OTG_FS_TOTAL_FIFO_SIZE` is not defined in the vendor headers for all STM32 families has therefore been moved from the driver to the STM32-specific USB device header.
gschorcht
requested review from
aabadie,
fjmolinas,
DipSwitch and
vincent-d
as code owners
October 17, 2022 18:12
github-actions
bot
added
Area: cpu
Area: CPU/MCU ports
Area: drivers
Area: Device drivers
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
labels
Oct 17, 2022
gschorcht
added
the
Type: cleanup
The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
label
Oct 17, 2022
benpicco
added
the
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
label
Oct 17, 2022
benpicco
approved these changes
Oct 17, 2022
Murdock results✔️ PASSED 1dfe79f drivers/usbdev_synopsys_dwc2: use DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE
ArtifactsThis only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: cpu
Area: CPU/MCU ports
Area: drivers
Area: Device drivers
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
Type: cleanup
The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
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.
Contribution description
This PR is a spit-off from PR #18756 and provides some fixes for the
usbdev_synopsys_dwc2
:usbdev_synopsys_dwc2
driver onztimer_msec
ztimer_msec
in ESP32 make filesMODULE_USBDEV_SYNOPSYS_DWC2
onHAS_PERIPH_DEV
DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE
not overridable for ESP32 SoCsDWC2_USB_OTG_FS_TOTAL_FIFO_SIZE
instead ofUSB_OTG_FS_TOTAL_FIFO_SIZE
Testing procedure
There are no functional changes. Green CI should be sufficient.
Issues/PRs references
Split-off from PR #18756