spi_master:fix error when use spi_bus_add_device more than 3 device

update gpio_sig at `spics_out` array in each spi_periph.c of chips later than s2
then `spi_bus_add_device` can correctly distribute gpio_signals for cs_signal

Closes https://github.com/espressif/esp-idf/issues/8876
This commit is contained in:
wanlei
2022-08-31 21:06:24 +08:00
parent 7bc264ed80
commit 96aa2792f8
19 changed files with 57 additions and 63 deletions

View File

@@ -535,6 +535,10 @@ config SOC_SPI_DMA_CHAN_NUM
int
default 2
config SOC_SPI_MAX_CS_NUM
int
default 3
config SOC_SPI_MAXIMUM_BUFFER_SIZE
int
default 64

View File

@@ -268,6 +268,7 @@
#define SOC_SPI_DMA_CHAN_NUM 2
#define SOC_SPI_PERIPH_CS_NUM(i) 3
#define SOC_SPI_MAX_CS_NUM 3
#define SOC_SPI_MAXIMUM_BUFFER_SIZE 64
#define SOC_SPI_MAX_PRE_DIVIDER 8192