Possible to use SPI slave driver without Chip Select?
Posted: Sun Mar 14, 2021 6:53 pm
Is it possible to use the SPI slave driver without defining a chip select?
I have a device that uses an interface very similar to SPI.
It has a MOSI, MISO and clock line, but no CS (chip select).
I would still like to use the SPI peripheral for this, instead of implementing some implementing it from scratch using interrupts from the clock line.
I tried initializing spics_io_num in spi_slave_interface_config_t as -1, but this results in an exception, when spicommon_cs_initialize is called from spi_slave_initialize:
Is there a way to use the peripheral without the CS line via the ESP-IDF API?
I have a device that uses an interface very similar to SPI.
It has a MOSI, MISO and clock line, but no CS (chip select).
I would still like to use the SPI peripheral for this, instead of implementing some implementing it from scratch using interrupts from the clock line.
I tried initializing spics_io_num in spi_slave_interface_config_t as -1, but this results in an exception, when spicommon_cs_initialize is called from spi_slave_initialize:
Code: Select all
E (270) gpio: gpio_set_direction(263): GPIO number error