Skip to content

feat(lpc): retire legacy clockless_arm_lpc_pwm_dma.h template (#3517 Phase A.3) - #3529

Merged
zackees merged 1 commit into
masterfrom
feat/lpc-retire-legacy-pwm-dma
Jul 1, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/lpc-retire-legacy-pwm-dma

Conversation

@zackees

@zackees zackees commented Jul 1, 2026

Copy link
Copy Markdown
Member

Phase A.3 of #3517.

Retires the 502-line legacy clockless_arm_lpc_pwm_dma.h template header. Now that #3527 (Phase A.2) routed addLeds<WS2812>() through the channels-API engine via clockless_channel_lpc.h, nothing in the tree #includes the legacy header — safe to delete.

Confirmation nothing references it

$ grep -rn '#include.*clockless_arm_lpc_pwm_dma' src/ examples/ tests/
(no results)

Also updated

Provenance / "derived from" comments inside drivers/sct_dma/* stay — they document design derivation, not include dependencies.

Verification

Refs: #3517 (meta), #3527 (Phase A.2), #3522 (tier define + CHUNK_BITS fix).

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

…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]>
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@zackees, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 2 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4d9d85b7-e947-45d7-8260-65e06edecd9f

📥 Commits

Reviewing files that changed from the base of the PR and between 1afaf37 and a7b03bd.

📒 Files selected for processing (2)
  • src/platforms/arm/lpc/README.md
  • src/platforms/arm/lpc/clockless_arm_lpc_pwm_dma.h
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/lpc-retire-legacy-pwm-dma

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.

@zackees
zackees merged commit 98b7884 into master Jul 1, 2026
6 of 8 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 1, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 1, 2026
@zackees
zackees deleted the feat/lpc-retire-legacy-pwm-dma branch August 21, 2026 19:15
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.

1 participant