Skip to content

slim bridge: LPC non-channel, Apollo3, Renesas, MGM240, CI13xx clockless #4596

Closed as not planned

Description

@zackees

Files:

  • src/platforms/arm/lpc/clockless_arm_lpc.h
  • src/platforms/arm/lpc/clockless_arm_lpc_plu.h
  • src/platforms/apollo3/clockless_apollo3.h
  • src/platforms/arm/renesas/clockless_arm_renesas.h
  • src/platforms/arm/mgm240/: clockless_arm_mgm240, clockless_ezws2812_39mhz, clockless_ezws2812_78mhz, clockless_ezws2812_gpio, clockless_ezws2812_spi
  • src/platforms/ci13xx/clockless_ci13xx.h

Direct DriverTraits, per the policy sub-issue.

Part of #4580. Follow the slim bridge format, the gap register (A1-A12) and the testing plan (T0-T4) there. Acceptance: the T1 conformance suite passes, a same-SHA bash bloat before/after is recorded, and AutoResearch evidence is included where hardware is available.

Activity

  1. zackees commented on Sep 25, 2026

    @zackees
    MemberAuthor

    Exempt per the decision recorded in #4590: this platform's legacy clockless path links no channel code, so the slim bridge has nothing to remove, and bridging would add ChannelManager. Reopen if its legacy controller adopts a channel driver.

  2. zackees commented on Sep 25, 2026

    @zackees
    MemberAuthor

    Reopened under follow-up meta #4601. The exemption in #4590 is being re-evaluated per platform by measurement rather than applied as a blanket rule.

  3. zackees commented on Sep 25, 2026

    @zackees
    MemberAuthor

    Measured on origin/master e61aae4f0d, Blink, bash bloat <board> --build. The channel-symbol check greps .build/symbols/<board>/report.json for ChannelManager, fl::Channel::, ChannelData and IChannelDriver.

    Channel driver: none for these paths. LPC does have channel engines (drivers/sct_dma, drivers/uart_dma), but they are LPC845-only and are already bridged by clockless_channel_lpc*.h (#4586/#4605). clockless_arm_lpc.h is the bit-bang fallback for LPC804, LPC11U and LPC15xx, and for LPC845 without a DMA flag. clockless_arm_lpc_plu.h is the opt-in PLU path on the LPC804. Neither has an engine. Apollo3, Renesas, MGM240 and CI13xx have no IChannelDriver/BusTraits and FASTLED_HAS_CHANNELS 0.

    Board Flash RAM Channel symbols
    lpc804 (bit-bang) 8,850 B 2,028 B none
    apollo3_red 150,330 B 29,657 B none
    uno_r4_wifi (Renesas) 53,366 B 25,918 B none
    mgm240 54,292 B 22,089 B none

    CI13xx has no CI board label, so it was not measured. Code search shows no channel driver.

    Decision: keep as-is and close as not planned (per the #4601 rule). There is no channel engine to bridge onto, and no channel code is linked. The only option left is a "Direct" DriverTraits reshuffle of the same timing-critical bit-bang code. It would not save flash and could not be hardware-validated. Reopen if a hardware channel engine (DMA, PIO-like or UART) lands for this family.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions