OVMS3-idf/components/spi_flash/include
michael fdf983e0c4 spi: fix config break and reduce overhead of the bus lock on SPI1
The SPI bus lock on SPI1 introduces two side effects:

1. The device lock for the main flash requires the
`CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION` to be selected, however this
option is disabled by default in earlier IDF versions. Some developers
may find their project cannot be built by their old sdkconfig files.

2. Usually we don't need the lock on the SPI1 bus, due to it's
restrictions. However the overhead still exists in this case, the IRAM
cost for static version of semaphore functions, and the time cost when
getting and releasing the lock.

This commit:

1. Add a CONFIG_SPI_FLASH_BYPASS_MAIN_LOCK option, which will forbid the
space cost, as well as the initialization of the main bus lock.

2. When the option is not selected, the bus lock is used, the
`CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION` will be selected explicitly.

3. Revert default value of `CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION`
to `n`.

introduced in 49a48644e4.

Closes https://github.com/espressif/esp-idf/issues/5046
2020-04-22 16:06:13 +08:00
..
esp_flash.h spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers 2020-03-03 00:17:27 +00:00
esp_flash_internal.h spi: fix config break and reduce overhead of the bus lock on SPI1 2020-04-22 16:06:13 +08:00
esp_flash_spi_init.h esp_flash: deprecate the cs_id member, which is no longer used. 2020-04-17 18:15:33 +08:00
esp_partition.h docs: Explain custom partition types/subtypes in more detail 2020-04-02 10:00:17 +11:00
esp_spi_flash.h Merge branch 'master' into feature/esp32s2beta_merge 2019-09-16 16:18:48 +10:00
memspi_host_driver.h ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation 2019-11-28 09:20:00 +08:00
spi_flash_chip_driver.h esp_flash: fix set qe bit and write command issues 2019-10-14 17:25:58 +08:00
spi_flash_chip_gd.h esp_flash: fix the quad issue for some GD flash chips 2019-10-14 17:25:59 +08:00
spi_flash_chip_generic.h esp_flash: fix set qe bit and write command issues 2019-10-14 17:25:58 +08:00
spi_flash_chip_issi.h spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00
spi_flash_chip_mxic.h esp_flash: support MXIC flash chips 2020-04-01 20:54:23 +08:00