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

Please allow USB host and device at the same time #187

Open
harbaum opened this issue Nov 28, 2023 · 2 comments
Open

Please allow USB host and device at the same time #187

harbaum opened this issue Nov 28, 2023 · 2 comments

Comments

@harbaum
Copy link

harbaum commented Nov 28, 2023

Please change this:

elseif(CONFIG_CHERRYUSB_HOST)

to

endif()
if(CONFIG_CHERRYUSB_HOST)

This will allow to use host and device at the same time.

My use case is a device that usually acts as a USB host. But it can optionally be connected to a PC for update. And in that case it needs to be a USB device.

I have tested this and with this change the device can switch roles and works as expected.

@harbaum harbaum changed the title Please allolw USB host and device at the same time Please allow USB host and device at the same time Nov 28, 2023
@gamelaster
Copy link
Contributor

@harbaum I think it would be better to ask about this here: https://github.com/cherry-embedded/CherryUSB

@harbaum
Copy link
Author

harbaum commented Nov 28, 2023

No. This CMakefile only exists in the bouffalo sdk and not in cherryusb.

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

No branches or pull requests

2 participants