Skip to content

feat(rp2040): complete automatic parallel PIO output - #3707

Merged
zackees merged 1 commit into
masterfrom
feat/rp2040-pio-parallel
Jul 16, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2040-pio-parallel

Conversation

@zackees

@zackees zackees commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Closes #3620\n\nSummary:\n- Replace the opt-in RP2040/RP2350 parallel driver's logging-only paths with real PIO/DMA transfers.\n- Support 2/4/8-lane transposed output and single-lane fallback for mixed/non-consecutive layouts.\n- Reuse RpPioTxPeripheral for resource claims, timing setup, DMA, and terminal-wire completion; add bounded timeout handling.\n- Remove stale documentation claiming the fallback was unimplemented.\n\nValidation:\n- bash test tests/platforms/arm/rp/rpcommon/channel_engine_rp_pio\n- bash compile rp2040 --examples Blink\n- bash compile rp2040 --examples SpecialDrivers/RP/Parallel_IO --defines FASTLED_RP2040_CLOCKLESS_PIO_AUTO=1 --no-filter\n- bash lint --cpp ... (environment blocked before lint: x86_64-pc-windows-msvc Rust target is not installed)

Summary by CodeRabbit

  • New Features

    • Added functional single-pin output using the timing-safe PIO/DMA transmission path.
    • Enabled parallel output transmission through the shared PIO/DMA engine.
  • Bug Fixes

    • Improved transmission handling with timeout and abort support for busy or incomplete transfers.
  • Documentation

    • Updated documentation to reflect the implemented single-lane behavior and resource usage.

@zackees
zackees merged commit a050ad9 into master Jul 16, 2026
@zackees
zackees deleted the feat/rp2040-pio-parallel branch July 16, 2026 12:00
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b5df2730-4227-4eb0-b602-b4d326f7aca7

📥 Commits

Reviewing files that changed from the base of the PR and between ce7108e and 7052a11.

📒 Files selected for processing (2)
  • src/platforms/arm/rp/rpcommon/PARALLEL.md
  • src/platforms/arm/rp/rpcommon/clockless_rp_pio_auto.cpp.hpp

📝 Walkthrough

Walkthrough

The RP clockless PIO implementation now uses a shared RpPioTxPeripheral transmission path for sequential and parallel output, removes per-pin-group resource allocation, adds DMA/PIO completion handling, and updates documentation for single-lane operation.

Changes

RP PIO auto transmission

Layer / File(s) Summary
Transmission setup and pin-group lifecycle
src/platforms/arm/rp/rpcommon/clockless_rp_pio_auto.cpp.hpp
Adds transmission-related headers, simplifies Rp2040PinGroup, and rebuilds pin groups without explicit per-group PIO/DMA allocation.
Single-lane and parallel transmission
src/platforms/arm/rp/rpcommon/clockless_rp_pio_auto.cpp.hpp, src/platforms/arm/rp/rpcommon/PARALLEL.md
Generates DMA words for sequential and parallel output, sends them through RpPioTxPeripheral, waits for DMA and PIO completion with timeout handling, and documents single-lane behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related issues

  • FastLED/FastLED issue 3658: Covers RP2040/RP2350 PIO clockless transmission, including single-lane and parallel DMA paths implemented here.

Possibly related PRs

  • FastLED/FastLED#3666: Introduces the RpPioTxPeripheral DMA and terminal-completion workflow used by this transmission path.
  • FastLED/FastLED#3667: Overlaps with variable-lane packing and active-lane behavior for RP PIO TX.
  • FastLED/FastLED#3675: Modifies PIO TX program installation and cleanup used by this implementation.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rp2040-pio-parallel

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 16, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Finish the parallel implementations using the PIO hardware on Pi Pico to drive multiple strips with one PIO program

1 participant