Skip to content

slim bridge: shared/fallback clockless controllers #4597

Closed as not planned
Closed as not planned

Description

@zackees

Files:

  • src/platforms/shared/clockless_blocking.h (ClocklessBlockingGeneric)
  • src/platforms/stub/clockless_stub_generic.h (ClocklessController, ClocklessBlockController)
  • src/platforms/adafruit/clockless.h
  • src/platforms/neopixelbus/clockless.h (two controllers)

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. moved this from Triage to Done in FastLED Trackeron Sep 25, 2026
  3. 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.

  4. moved this from Done to Triage in FastLED Trackeron Sep 25, 2026
  5. 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: these are shared or fallback controllers, not platform drivers. shared/clockless_blocking.h (ClocklessBlockingGeneric) is the bit-bang fallback that AVR and ESP8266 pull in, so its size is covered by the uno/attiny85/esp8266 numbers in #4590/#4591. stub/clockless_stub_generic.h is commented out at both of its include sites. The stub/WASM path already has clockless_channel_stub.h and clockless_channel_engine_stub.h. adafruit/clockless.h is an opt-in wrapper (FASTLED_USE_ADAFRUIT_NEOPIXEL), and neopixelbus/clockless.h is a wrapper that users include directly. Both delegate to third-party libraries. shared/bitbang/BitBangChannelDriver exists, but no platform registers it. Routing the fallback through it would add ChannelManager overhead to the smallest targets (uno 4,750 B / attiny85 3,190 B, with no channel symbols today).

    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