Skip to content

Some USB test code fixes#775

Open
peterharperuk wants to merge 4 commits into
raspberrypi:developfrom
peterharperuk:tinyusb_example_fixes
Open

Some USB test code fixes#775
peterharperuk wants to merge 4 commits into
raspberrypi:developfrom
peterharperuk:tinyusb_example_fixes

Conversation

@peterharperuk

Copy link
Copy Markdown
Contributor

Some fixes to make tinyusb build cleanly on master (tag: 0.21.0)
Note: We probably need some fixes to the repo - see https://github.com/peterharperuk/tinyusb/tree/rp2040_fixes

@peterharperuk peterharperuk requested a review from kilograham June 30, 2026 17:36
The latest version of freertos adds the following definition to every
tinyusb example

CFG_TUSB_OS=${TINYUSB_OPT_OS}

But due to cmake scoping rules and the inclusion of tinyusb in pico-sdk
TINYUSB_OPT_OS is unset when the definition is added.
Make sure it's defined to avoid lots of redefinition warnings.

For freertos examples, add the tinyusb freertos config folder to the
list of include directories.
Different freertos examples might have different requirements.
Override the tinyusb cmake function family_add_subdirectory to ignore
any examples that won't build
@peterharperuk peterharperuk force-pushed the tinyusb_example_fixes branch from 2e15637 to e2f5e2a Compare July 1, 2026 15:09
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.

1 participant