Skip to content

docs(lpc/pwm-dma): land the #2879 multi-strip extension sketch in the driver header - #3044

Merged
zackees merged 1 commit into
masterfrom
feat/2879-multi-strip-design-doc
Jun 14, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/2879-multi-strip-design-doc

Conversation

@zackees

@zackees zackees commented Jun 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #2879 as design-documented. The multi-strip extension is gated on #2880 hardware sign-off of the v1 single-strip DMA path — the architectural risk is low, the work is bounded, and the right move is to capture the design sketch directly in the driver header so the bench session that closes #2880 can drop in the implementation without rediscovery.

Changes

  • src/platforms/arm/lpc/clockless_arm_lpc_pwm_dma.h — expanded the MULTI-CHAIN SUPPORT comment block. Five concrete items documented: LANE_COUNT template parameter, DMA descriptor chaining, encode pass cost, pin constraints, on-device test harness location.

Test plan

  • No behavioral change — docs only.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated technical documentation for multi-chain support planning, including architecture strategy and implementation considerations for future development.

… driver header

#2879 asked for multi-strip parallel WS2812 output on LPC845 via shared
SCT timebase + DMA. The issue is gated on Stage 2c (v1 single-strip
DMA path) hardware verification (#2880 sign-off), but the design space
is bounded and well-understood. This commit lands the extension sketch
directly inside `clockless_arm_lpc_pwm_dma.h` so the follow-up PR can
drop straight in once the bench is open -- no rediscovery cost.

Five concrete items captured:

  1. LANE_COUNT template parameter, default 1 (v1 ABI preserved).
  2. DMA channel sharing -- same 3 channels, descriptor chain per lane.
  3. Encode pass O(LANE_COUNT * leds), DMA time unchanged.
  4. Pin constraints unchanged from v1 (GPIO port 0 only).
  5. Test harness lands in examples/AutoResearch/AutoResearch.ino
     low-memory mode (post FastLED #3041 consolidation) next to the
     existing `ws2812SctTest` RPC.

Architectural template references already in the prior comment
(RP2040 PIO, Teensy 4.x FlexIO).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees merged commit ea28494 into master Jun 14, 2026
5 of 6 checks passed
@coderabbitai

coderabbitai Bot commented Jun 14, 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: 64ce0bc5-3385-41f6-bb15-cc3508b0dc40

📥 Commits

Reviewing files that changed from the base of the PR and between e2980f8 and cd081a4.

📒 Files selected for processing (1)
  • src/platforms/arm/lpc/clockless_arm_lpc_pwm_dma.h

📝 Walkthrough

Walkthrough

The PR expands a placeholder MULTI-CHAIN SUPPORT comment in src/platforms/arm/lpc/clockless_arm_lpc_pwm_dma.h into a structured design sketch for LPC845 Stage 4.4. The sketch covers LANE_COUNT template parameterization, DMA descriptor chaining strategy, encode-pass bitmask packing, lane pin constraints, and test harness placement. No functional code or logic is changed.

Changes

LPC845 multi-chain design documentation

Layer / File(s) Summary
Expanded multi-chain design sketch comment
src/platforms/arm/lpc/clockless_arm_lpc_pwm_dma.h
Replaces a 2-line placeholder with a ~38-line structured design sketch documenting LANE_COUNT template ABI, DMA descriptor chaining across lanes, encode-pass bitmask packing, lane pin constraints, and the planned examples/AutoResearch/AutoResearch.ino test harness location.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

  • #2879 — This PR directly documents the design intent for Stage 4.4 (multi-strip parallel output for LPC845), matching the issue's scope: LANE_COUNT template arg, DMA channel sharing across strips, and the examples/AutoResearch test harness.
  • #2845 — The comment sketch corresponds to the Stage 4.4 "Multi-strip parallel output" item in this meta roadmap issue.
  • #2842 — The documented design builds directly on top of the single-strip PWM+DMA path that this issue tracks; the sketch explicitly notes the multi-strip implementation is blocked on Stage 2c hardware validation.
  • #2836 — The changed file (clockless_arm_lpc_pwm_dma.h) is the same LPC845 PWM+DMA driver file that this issue is about implementing and documenting.

Poem

🐰 A rabbit once sketched on a header so bare,
With LANE_COUNT and DMA descriptors there,
No LEDs yet blink, no logic yet runs,
But the plan is now written for LPC8xx fun—
Stage 4.4 awaits when the hardware is found! ✨

✨ 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/2879-multi-strip-design-doc

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 and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

1 participant