Skip to content

test(esp32,spi): route ChannelEngineSpi through ISpiPeripheral so host tests can cover it #4910

Closed

Description

@zackees

From the #4909 review. ChannelEngineSpi calls ESP-IDF directly (spi_bus_initialize, spi_bus_add_device, spi_bus_remove_device, gpio_get_io_config), so its host tests (tests/platforms/esp/32/drivers/spi/channel_driver_spi.cpp) are #ifdef ESP32 and cover only canHandle() and routing classification. SpiPeripheralMock exists but the engine does not use it.

Goal: put the engine's SPI and pin-routing calls behind the peripheral interface (as RMT5 does with IRMT5Peripheral) and add a host test. Two acquisitions where the pin routing changes while the channel is idle must release the old device and host and re-initialize the bus (the #4907 behaviour, currently verified only on S3/C6 hardware).

Activity

  1. added
    sanitized
    on Nov 6, 2026
  2. moved this from Triage to Done in FastLED Trackeron Nov 21, 2026
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

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions