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

Switch between USB Host and USB Device modes #447

Open
doctea opened this issue Aug 4, 2024 · 0 comments
Open

Switch between USB Host and USB Device modes #447

doctea opened this issue Aug 4, 2024 · 0 comments
Labels
Feature New feature or request

Comments

@doctea
Copy link

doctea commented Aug 4, 2024

Is your feature request related to a problem? Please describe.
I am working on an RP2040 project where sometimes it would be useful to use it as a USB MIDI host, other times as a USB MIDI device. The hardware I'm building on doesn't provide for adding the "second" USB port on GPIO, so it'd be great to be able to switch between the two without requiring recompilation.

Describe the solution you'd like
Most ideal would be if it were possible to switch between host and device mode on the fly, without rebooting the MCU.

Alternatively, being able to choose which mode to start in without requiring recompilation could work (eg a 'reboot into device mode', 'reboot into host mode' option that sets a flag in flash that chooses which mode the USB starts up in.

I appreciate this might not be a trivial feature, but it would be really useful.

@doctea doctea added the Feature New feature or request label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant