Merge branch 'bugfix/spi2_add_device_cs_more_than_3' into 'master'

spi_master: fix error when use `spi_bus_add_device` add more than 3 devices

Closes IDFGH-7288

See merge request espressif/esp-idf!19798
This commit is contained in:
Wan Lei
2022-09-14 10:33:37 +08:00
20 changed files with 179 additions and 70 deletions

View File

@@ -539,6 +539,10 @@ config SOC_SPI_PERIPH_NUM
int
default 2
config SOC_SPI_MAX_CS_NUM
int
default 6
config SOC_SPI_MAXIMUM_BUFFER_SIZE
int
default 64

View File

@@ -260,6 +260,7 @@
/*-------------------------- SPI CAPS ----------------------------------------*/
#define SOC_SPI_PERIPH_NUM 2
#define SOC_SPI_PERIPH_CS_NUM(i) 6
#define SOC_SPI_MAX_CS_NUM 6
#define SOC_SPI_MAXIMUM_BUFFER_SIZE 64