bouffalo_sdk icon indicating copy to clipboard operation
bouffalo_sdk copied to clipboard

Please allow USB host and device at the same time

Open harbaum opened this issue 7 months ago • 2 comments

Please change this:

https://github.com/bouffalolab/bouffalo_sdk/blob/81a1645805de9ebb83666946d1daebbe8fcd7025/components/usb/cherryusb/CMakeLists.txt#L45

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 avatar Nov 28 '23 12:11 harbaum