renesas/rusb2: add support for RA MCUs with USBFS device-only support#3771
Open
gernotwalserxh wants to merge 2 commits into
Open
renesas/rusb2: add support for RA MCUs with USBFS device-only support#3771gernotwalserxh wants to merge 2 commits into
gernotwalserxh wants to merge 2 commits into
Conversation
Renesas RA MCUs with with usb device-only support have a different hardware implementation, which has already been implemented for RA2A1 and also works for others like RA4E2. This introduces define RUSB2_RA_USBFS_DEVICE_ONLY for MCUs with this implementation and sets correct pipe allocation and FIFO register aliases for all supported MCUs instead of RA2A1 only. Tested on RA4E2 with HID Gamepad Device.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Renesas RA MCUs with with usb device-only support have a different hardware stack as MCUs with host support, which has already been implemented for RA2A1 but also works for others like RA4E2 with the same hardware stack.
This introduces define RUSB2_RA_USBFS_DEVICE_ONLY for MCUs with this implementation and sets correct pipe allocation and FIFO register aliases for all supported MCUs instead of RA2A1 only.
RA2A1 specific checks have been replaced with a common check for RUSB2_RA_USBFS_DEVICE_ONLY.
Tested on RA4E2 with FreeRTOS and TinyUSB HID Gamepad Device.
Not tested for other usb device-only RA MCUs (RA2L2, RA6E2 and RA6T3), only verified by datasheet.