Repository navigation
fix(rp): transmit independent strips concurrently on the PIO engine (#4620) - #4633
Merged
Merged
Conversation
…4620) ChannelEngineRpPio now splits a frame into jobs (consecutive-pin batches as before, everything else on its own) and runs clockless jobs concurrently, each on its own TX peripheral (state machine + DMA). The bus holder supplies extra peripherals on the engine's own PIO block, at most four per engine. When PIO/DMA resources run out, queued jobs wait for a running one to finish and reuse its resources; permanent rejections still fail the frame at once. 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 #4620. Part of #4601 / #4580.
What changed
ChannelEngineRpPiosplits each frame into jobs. As before, consecutive pins with equal timing, XTRA0 and length become one multi-lane batch. Every other strip is its own job.IRpPioTxPeripheral(one SM plus one DMA channel). This restores the per-strip parallel output that the old direct controller had.TxPeripheralFactory. The RP bus holder suppliesRpPioTxPeripheral(Which, /*fallback*/false).pio_gpio_initper lane, fix(rp): hand every lane pin to the PIO in multi-lane batches #4628).canHandle, empty data) fail at once.Verification
bash test --cpp: 314/314 unit and 95/95 examples.bash test channel_engine_rp_pio --debugis clean.bash lintis clean.bash compile rp2040|rp2350 --examples Blink,BlinkParallel,RGBWWpasses.Code review (
/code-review medium)createProgramcannot encode is still treated as possibly transient while other jobs run.Hardware
Hardware validation is deferred (maintainer decision), tracked in #4623.
🤖 Generated with Claude Code