Repository navigation
feat(lpc): retire legacy clockless_arm_lpc_pwm_dma.h template (#3517 Phase A.3) - #3529
Conversation
…Phase A.3) The classic `ClocklessController<>` template that supplied the LPC845 SCT+DMA fast path is now `clockless_channel_lpc.h` (landed in #3527), which routes through `ChannelEngineLpcSctDma` via `BusTraits<Bus::BIT_BANG>`. Nothing in the tree still `#include`s the legacy header: $ grep -rn '#include.*clockless_arm_lpc_pwm_dma' src/ examples/ tests/ (no results) Safe to delete. Keeping two code paths for the same peripheral risked: 1. Divergent register-programming choices (the legacy template still had `TODO(2842)` markers that got moved into the channels-API runtime `lpc_sct_dma_runtime.cpp.hpp`). 2. Confusion for users about which path they get when `FASTLED_LPC_PWM_DMA=1` is set. Also updates `src/platforms/arm/lpc/README.md`: - Supported-platforms row for LPC845 replaces "PWM+DMA legacy template (#2850)" with the channels-API engine + `addLeds<>` route (#3527). - Files section marks `clockless_arm_lpc_pwm_dma.h` as retired with an explanation. Historical / provenance comment references inside `drivers/sct_dma/channel_engine_lpc_sct_dma.{h,cpp.hpp}` and `drivers/sct_dma/lpc_sct_dma_runtime.{h,cpp.hpp}` are kept — those narrate the design derivation, they're not `#include` breakage risks. ## Verification - `bash test --cpp` — 345/345 pass (unchanged from master) - `bash bloat lpc845 --allow-overflow` — vanilla LPC845 build still 53.29 KB (the retired header was never linked in vanilla anyway; users had to opt into it, and #3527 already routed that opt-in through the channels adapter) - With `-DFASTLED_LPC_PWM_DMA=1` build still overflows by 236 B — that budget gap needs the `FL_AUTORESEARCH_LITE_RPC` implementation (from #3522) to close. Refs: #3517 (meta issue), #3527 (Phase A.2 addLeds routing), #3522 (tier define), #2850 (original PR that shipped this file). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Warning Review limit reached
Next review available in: 2 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 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 |
Phase A.3 of #3517.
Retires the 502-line legacy
clockless_arm_lpc_pwm_dma.htemplate header. Now that #3527 (Phase A.2) routedaddLeds<WS2812>()through the channels-API engine viaclockless_channel_lpc.h, nothing in the tree#includes the legacy header — safe to delete.Confirmation nothing references it
Also updated
src/platforms/arm/lpc/README.md— Supported Platforms row for LPC845 replaces "PWM+DMA legacy template (feat(platform): LPC845 PWM+DMA-to-GPIO clockless driver (#2842) #2850)" with the channels-API engine +addLeds<>route (feat(lpc): route addLeds<WS2812> through channels engine (#3517 Phase A.2) #3527). Files section marks the header as retired with an explanation.Provenance / "derived from" comments inside
drivers/sct_dma/*stay — they document design derivation, not include dependencies.Verification
bash test --cpp— 345/345 passbash bloat lpc845vanilla — 53.29 KB unchanged (retired header was never linked in vanilla)-DFASTLED_LPC_PWM_DMA=1— still 236 B over budget, unchanged; that gap needs theFL_AUTORESEARCH_LITE_RPC(from feat(autoresearch): FL_AUTORESEARCH_LITE_RPC tier define + fix LPC PWM_DMA CHUNK_BITS #3522) implementation to close.Refs: #3517 (meta), #3527 (Phase A.2), #3522 (tier define + CHUNK_BITS fix).
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]