Skip to content

docs(rp2040): document public hardware SPI routing - #3704

Merged
zackees merged 1 commit into
masterfrom
feat/rp2040-public-spi
Jul 16, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2040-public-spi

Conversation

@zackees

@zackees zackees commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Closes #3698\n\n## Summary\n- document that public APA102/SK9822 addLeds routes through the RP Channel API\n- distinguish the supported fixed SPI0/SPI1 path from legacy SPIOutput and multi-lane PIO backends\n- add a compile-time RP2040 guard requiring the public SPI Channel API\n\n## Validation\n- bash test tests/fl/chipsets/spi_frame_protocol (pass)\n- bash compile rp2040 --examples Blink (blocked by fbuild daemon disconnect before compilation)\n- bash lint (blocked by missing x86_64-pc-windows-msvc Rust target in the local environment)

Summary by CodeRabbit

  • Bug Fixes

    • Added compile-time validation to ensure RP2040 and Pico targets use the supported public SPI channel API.
  • Documentation

    • Clarified SPI routing for APA102 and SK9822 LED strips.
    • Documented the distinction between public channel-based SPI and legacy or multi-lane SPI implementations.
    • Added guidance for maintaining compatibility with legacy SPI users.

@zackees
zackees merged commit c884e6b into master Jul 16, 2026
9 checks passed
@zackees
zackees deleted the feat/rp2040-public-spi branch July 16, 2026 10:59
@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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f6100f74-7d66-4ee4-a500-ab170914c534

📥 Commits

Reviewing files that changed from the base of the PR and between 0f29b2b and f065de0.

📒 Files selected for processing (3)
  • src/platforms/arm/compile_test.hpp
  • src/platforms/arm/rp/rpcommon/README.md
  • src/platforms/arm/rp/rpcommon/led_sysdefs_rp_common.h

📝 Walkthrough

Walkthrough

RP2040 compile-time validation now requires public SPI chipsets to use the Channel API. RP-specific documentation describes the software-only legacy SPI path, PL022 SPI0/SPI1 channel routing, and the separate multi-lane PIO+DMA implementations.

Changes

RP2040 public SPI routing

Layer / File(s) Summary
Compile-time Channel API enforcement
src/platforms/arm/compile_test.hpp
RP2040 public SPI chipset builds now fail unless FASTLED_SPI_USES_CHANNEL_API equals 1.
RP SPI routing documentation
src/platforms/arm/rp/rpcommon/led_sysdefs_rp_common.h, src/platforms/arm/rp/rpcommon/README.md
Documents software-only legacy SPIOutput, Channel API routing through ChannelEngineRpSpi and PL022 SPI0/SPI1, and the separate MultiLaneDevice PIO+DMA implementations.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • FastLED/FastLED issue 3700: Covers compiling and validating public RP2040 SPI addLeds() usage.
  • FastLED/FastLED issue 3660: Concerns RP2040 APA102/SK9822 handling through public addLeds() and SPI channel routing.
  • FastLED/FastLED issue 3647: Concerns RP2040 public SPI transport through the Channel API.
  • FastLED/FastLED issue 3659: Covers the RP2040 SPI0/SPI1 Channel API driver path.

Possibly related PRs

  • FastLED/FastLED#3668: Adds the ChannelEngineRpSpi SPI0/SPI1 DMA channel drivers referenced by this routing contract.
  • FastLED/FastLED#3672: Adds RP2040 public API loopback validation for the same Channel API path.
  • FastLED/FastLED#3703: Coordinates the separation of multi-lane controllers from public single-channel SPI routing.
✨ 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-public-spi

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.

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.

fix(rp2040): route legacy public SPI output to hardware SPI

1 participant