-
Notifications
You must be signed in to change notification settings - Fork 184
Compile support for TinyUSB Host #314
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
Open
Open
Conversation
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
- Is it an ESP32-S2/S3/P4 native USB Host or it needs an external MAX3421 IC ?
- FS or HS ?
@lyusupov it's for native USB host. Speed depends on the chip. FS for S2 and S3 and HS for P4
That's great!
Waiting patiently for your merge of this PR into upcoming Release.
Will be happy to try it out on P4 in HS mode with USB RTL-SDR receiver (and libusb driver).
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.
This pull request enhances TinyUSB integration in the Arduino ESP32 project by expanding support for USB host functionality alongside device mode. The changes update build configuration, add host-related source files, and introduce new host-specific settings and code patches to enable and configure the host stack.
Build system and source file updates:
usbh.c
,hub.c
, host class drivers) to thesrcs
list incomponents/arduino_tinyusb/CMakeLists.txt
, enabling compilation of USB host features. Also updated device and common file inclusion for TinyUSB. [1] [2]Configuration and settings:
tusb_config.h
, such asCFG_TUH_ENABLED
,CFG_TUSB_RHPORT1_MODE
, and buffer/device limits for host mode. Also added board-level defines for host port and speed.CFG_TUD_ENABLED
whenCONFIG_TINYUSB_ENABLED
is set, and added board-level macros for device port and speed. Improved memory alignment handling for ESP32P4 targets. [1] [2] [3]Code patching for host support:
dwc2_esp32_h.diff
) to the TinyUSB source, updating interrupt handler logic to call both device and host interrupt handlers as appropriate. [1] [2]