Repository navigation
fix(rp): honour XTRA0 and fall back across PIO blocks (#4622) - #4631
Merged
Merged
Conversation
…ne (#4622) - ChannelData carries the legacy XTRA0 as extra zero bits per byte; SlimBridgeController takes an optional XTRA0 parameter and ClocklessRpPio forwards it, so GE8822/GW6205 get their 12-bit symbols on RP again. - ChannelEngineRpPio emits the extra zero planes and never batches lanes with different XTRA0. - RpPioTxPeripheral::configure() retries the state-machine/DMA/pin claim and the program load on every PIO block, not only its own. - One clear warning when no block can take the strip. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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.
Closes #4622. Part of #4601 / #4580.
What changed
ChannelDatanow carriesextraZeroBitsPerByte.SlimBridgeControllertakes an optional trailingXTRA0template parameter (default 0, so other platforms are unchanged).ClocklessRpPioforwards itsXTRA0, so GE8822 and GW6205 (XTRA0=4,src/chipsets.h) again get 8+4-bit symbols on RP.ChannelEngineRpPioemits the extra zero planes, and it does not batch lanes whose XTRA0 differs.RpPioTxPeripheral::configure()first tries its own PIO block, then every other block. The SM, DMA and pin claim and the program load are retried together, so a block whose instruction memory is full is also skipped. This covers the usual case where TinyUSB or PIO-USB holds PIO0.FL_WARN_ONCEnames the possible causes (invalid pin or timing, or no SM / program space / DMA) and points atFASTLED_RP2040_CLOCKLESS_PIO=0, the blocking bit-bang controller.FASTLED_RP2040_CLOCKLESS_M0_FALLBACK). Resources are claimed asynchronously per transmission inside the engine, so a synchronous fallback would need a probe-then-claim race. The documented compile-time switch remains the escape hatch.Verification
tests/platforms/arm/rp/rpcommon/channel_engine_rp_pio.cpp:bash test --cpp: all pass.bash lint: clean.bash compile rp2040|rp2350 --examples Blinkwith GE8822 and GW6205addLedsenabled locally (not committed) builds.BlinkandBlinkParallelfor rp2040 and rp2350 build.Code review (
/code-review medium)configure()and retries both together.configure()failure on resource exhaustion. Fixed: it now lists every cause.Hardware
Hardware validation is deferred (maintainer decision), tracked in #4623.
🤖 Generated with Claude Code