Repository navigation
docs(lpc/pwm-dma): land the #2879 multi-strip extension sketch in the driver header - #3044
Conversation
… 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]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR expands a placeholder ChangesLPC845 multi-chain design documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
Poem
✨ 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 |
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_COUNTtemplate parameter, DMA descriptor chaining, encode pass cost, pin constraints, on-device test harness location.Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit