spi_flash: fix config SPI_FLASH_SHARE_SPI1_BUS dependency

This commit is contained in:
wanlei
2023-04-14 16:24:32 +08:00
parent 6b28967b64
commit 40b0dbae10
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,7 @@
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
CONFIG_XTAL_FREQ_AUTO=y
CONFIG_SPI_FLASH_SHARE_SPI1_BUS=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_SPI_FLASH_SHARE_SPI1_BUS=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partition_table_esp32_flash.csv"
CONFIG_PARTITION_TABLE_FILENAME="partition_table_esp32_flash.csv"

View File

@ -101,7 +101,8 @@ menu "SPI Flash driver"
config SPI_FLASH_SHARE_SPI1_BUS
bool "Support other devices attached to SPI1 bus"
default n
depends on !IDF_TARGET_ESP32S2
depends on IDF_TARGET_ESP32
select SPI_MASTER_ISR_IN_IRAM
help
Each SPI bus needs a lock for arbitration among devices. This allows multiple
devices on a same bus, but may reduce the speed of esp_flash driver access to the