Repository navigation
feat(platform/lpc): LPC11xx legacy clockless driver — 0x50000000 masked-access GPIO (closes #2878) - #3045
Conversation
…ked-access GPIO (closes #2878) Stage 4.1 (legacy item) of FastLED #2845. The modern LPC11Uxx parts shipped in #2872 share the 0xA0000000 GPIO controller with LPC8xx, but the legacy LPC1110/1112/1114/1115 line uses the older 0x50000000 controller with 12-bit masked-access semantics per UM10398 sec. 9. That controller is not register-compatible with the modern one, so the existing fastpin emitted a `#error` for FL_IS_ARM_LPC_11_LEGACY. This commit lands: * `fastpin_arm_lpc11_legacy.h` -- new fastpin header. `MASKED_ACCESS[mask]` writes lift hi()/lo() to single stores with no read-modify-write -- same property the modern controller's SET/CLR registers provide. Covers all four legacy ports (PIO0..3) via a 48-pin grid; per-package availability is enforced by hardware. * `fastpin_arm_lpc.h` -- the `#error` block is replaced with an include of the legacy header. The modern templates remain scoped to LPC8xx / LPC11Uxx / LPC15xx as before. * `fastled_arm_lpc.h` -- aggregator banner updated; the legacy family is now "supported via dedicated fastpin + shared M0 C++ clockless" rather than "NOT supported". * `README.md` -- the supported-platforms table flips LPC11xx legacy from "#error if targeted" to "Compiles; hardware bring-up pending" so the doc tracks reality. Hardware bring-up on real LPC1114 silicon stays as a follow-up (explicitly out of scope per the issue body). The existing M0 C++ clockless driver in `clockless_arm_lpc.h` already provides the WS2812 timing path and only consumes the `_ARMPIN` interface, so no clockless changes are required. 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 (4)
📝 WalkthroughWalkthroughAdds a new ChangesLPC11xx Legacy FastPin Driver
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
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 #2878. Stage 4.1 (legacy item) of FastLED #2845.
The modern LPC11Uxx parts already shipped in #2872 against the 0xA0000000 GPIO controller, but the legacy LPC1110/1112/1114/1115 line uses the older 0x50000000 controller with 12-bit masked-access semantics per UM10398 §9. That controller is not register-compatible with the modern one, so the existing fastpin emitted a
#errorforFL_IS_ARM_LPC_11_LEGACY. This PR lands the dedicated fastpin and re-enables the build.Changes
src/platforms/arm/lpc/fastpin_arm_lpc11_legacy.h— new.MASKED_ACCESS[mask]writes give us single-storehi()/lo()with no read-modify-write — the same property the modern controller's SET/CLR registers provide. Covers all four legacy ports (PIO0..3) via a 48-pin grid; per-package availability is enforced by hardware.src/platforms/arm/lpc/fastpin_arm_lpc.h—#errorblock replaced with an#includeof the new legacy header.src/platforms/arm/lpc/fastled_arm_lpc.h— aggregator banner: legacy family is now "supported via dedicated fastpin + shared M0 C++ clockless" rather than "NOT supported".src/platforms/arm/lpc/README.md— Supported Platforms table flips the LPC11xx legacy row from "#error if targeted" to "Compiles; hardware bring-up pending".The existing M0 C++ clockless driver (
clockless_arm_lpc.h) only consumes the_ARMPINinterface, so no clockless changes are required to light up the new family.Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit