Skip to content

Conversation

@akohlsmith
Copy link

This adds an example which implements a device which uses the USB peripheral in device mode offering two CDC interfaces and usb_sdio support including the picoloader reset interface as well as a usb host on the PIO-USB peripheral which supports a hub and connecting multiple CDC devices.

The example program will dump data seen on the first host CDC device to the first CDC device interface, and transparently transfers data between the second host CDC device and the second CDC device interface.

Confusing? :-)

tinyusb-device side (USB peripheral) - implements CDC0 and CDC1, and the picoloader reset interface. usb_sdio is attached to CDC0 so printf() and friends work.

tinyusb-host side (using PIO-USB via Pico-PIO-USB) supports a hub and up to two CDC devices (call them hCDC0 and hCDC1)

The example program will dump any data received from hCDC0 to CDC0, and will transparently transfer data between CDC1 and hCDC1.

Will require pico-sdk PR #2764 to work (raspberrypi/pico-sdk#2764)

@sekigon-gonnoc
Copy link
Owner

Thank you for the pull request. I’m planning to merge it, so could you please add this example as a subdirectory in examples/CMakeLists.txt?

@sekigon-gonnoc
Copy link
Owner

Is “sdio” a typo for “stdio”?

@akohlsmith
Copy link
Author

Is “sdio” a typo for “stdio”?

🤦 yes. Thank you for catching that. I've also added it to the examples/CMakeLists.txt now.

@akohlsmith
Copy link
Author

bump -- is there anything preventing this PR from getting merged?

@sekigon-gonnoc
Copy link
Owner

CI still fails

@akohlsmith
Copy link
Author

If I'm understanding the CI result only the old versions are failing which will be the case because it needs the latest version to work. Am I mistaken?

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.

2 participants