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

Better support multiple controllers configuration #1495

Merged
merged 10 commits into from Jun 6, 2022
Merged

Conversation

hathach
Copy link
Owner

@hathach hathach commented Jun 6, 2022

Describe the PR

  • Enhance configuration for multiple controllers e.g port0 for device, port1 for host and/or allow dynamic switching device/host role (not fully implemented yet). Previously CFG_TUSB_RHPORTx_MODE is used to fix device/host support.
  • CFG_TUD_ENABLED/CFG_TUH_ENABLED and CFG_TUD_MAX_SPEED/CFG_TUH_MAX_SPEED can now be used instead of CFG_TUSB_RHPORTx_MODE
  • tud_init(rhport), tuh_init(rhport) is used explicitly instead of tusb_init()
  • backward compatible, everything that works previously, still work without any changes.

@hathach hathach merged commit a03a03d into master Jun 6, 2022
@hathach hathach deleted the enhance-tusb-config branch June 6, 2022 18:13
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.

None yet

1 participant