Repository navigation
fix(rp2040): don't infer Adafruit_TinyUSB_Arduino unless USE_TINYUSB is selected (#1719) - #1721
Merged
Merged
Conversation
…is selected (#1719) Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1719.
Arduino-Pico's bundled
Adafruit_TinyUSB_Arduino#errors unlessUSE_TINYUSB(USB-stack menu) is defined, but library selection over-selects it through the core's#ifdef USE_TINYUSBincludes in SPI/SD/LittleFS. Same approach as #1606 (bluetooth_libs.rs): newrp2040/tinyusb_libs.rsdrops framework libraries whose headers have an#errorunder a!defined(USE_TINYUSB)/#ifndef USE_TINYUSBguard (structural marker, no hardcoded library name), unlessUSE_TINYUSBis defined by the menu or build_flags, or the library is named inlib_deps.Verified end to end (Linux, dev daemon, Arduino-Pico 4.5.3): issue's sketch with FastLED 3.10.8 in
lib/FastLEDAdafruit_TinyUSB_API.h:50:2: error: #error TinyUSB is not selectedbuild succeeded (flash: 360432 bytes)Note: a bare
#include <SPI.h>sketch, and FastLED master vialib_deps, already build on main, so the issue's "any SPI sketch" guess doesn't hold. The trigger is FastLED 3.10.8 inlib/.Tests: 4 new unit tests in
tinyusb_libs;cargo test -p fbuild-build-arm rp204040 passed; clippy clean. Docs:docs/architecture/library-selection.md.