OVMS3-idf/components/driver
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
..
esp32 driver(adc/dac): fix adc dac driver for esp32s2 2020-04-01 12:41:51 +08:00
esp32s2 driver(adc): add adc initial code before app_main for esp32s2. 2020-04-04 10:15:30 +08:00
include/driver spi: fix config break and reduce overhead of the bus lock on SPI1 2020-04-22 16:06:13 +08:00
test spi: fix config break and reduce overhead of the bus lock on SPI1 2020-04-22 16:06:13 +08:00
adc1_private.h driver(adc/dac): fix adc dac driver for esp32s2 2020-04-01 12:41:51 +08:00
adc_common.c driver(adc): add adc initial code before app_main for esp32s2. 2020-04-04 10:15:30 +08:00
can.c freertos: moved all xtensa specific files into a separated folder 2020-01-27 16:05:30 -03:00
CMakeLists.txt driver(adc): add adc initial code before app_main for esp32s2. 2020-04-04 10:15:30 +08:00
component.mk driver(adc/dac): fix adc dac driver for esp32s2 2020-04-01 12:41:51 +08:00
dac.c dac: refactor driver add hal 2019-11-22 11:44:46 +08:00
gpio.c bugfix(gpio):fix esp32 s2 rtc io issue 2019-11-27 17:18:20 +08:00
i2c.c Merge branch 'feature/esp32s2_i2c_driver' into 'master' 2020-03-26 10:20:40 +08:00
i2s.c driver(adc/dac): fix adc dac driver for esp32s2 2020-04-01 12:41:51 +08:00
Kconfig Docs: Omit kconfig configurations not available for the target 2020-01-30 10:30:06 +01:00
ledc.c global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
mcpwm.c mcpwm: add HAL layer support 2019-11-25 00:36:30 +08:00
pcnt.c driver: clean pcnt.h i2s.h 2020-03-02 19:31:29 +08:00
periph_ctrl.c periph_ctrl: move target specific into ll files 2020-02-24 14:50:26 +08:00
rmt.c rmt: prefix caps name with SOC_ 2020-03-25 17:14:00 +08:00
rtc_io.c rtcio: add hal for driver 2019-11-21 10:40:49 +08:00
rtc_module.c global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
sdio_slave.c sdio_slave: support HAL layer 2019-12-13 18:33:15 +08:00
sdkconfig.rename Rename Kconfig options (components/driver) 2019-05-21 09:09:01 +02:00
sdmmc_host.c driver: fix gpio pin_bit_mask truncation in sdspi_host and others 2019-11-18 13:42:22 +01:00
sdmmc_private.h tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
sdmmc_transaction.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
sdspi_crc.c sdspi: support crc16_be for esp32s2 2020-02-12 15:15:46 +08:00
sdspi_crc.h Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00
sdspi_host.c sdspi: use polling transactions to increase reading speed. 2020-02-12 15:16:19 +08:00
sdspi_private.h sdspi, vfs_fat: allow sharing SPI bus among devices, and mounting multiple SD cards 2020-02-12 15:16:08 +08:00
sdspi_transaction.c driver: remove unused drivers for esp32s2beta 2019-09-04 10:53:25 +10:00
sigmadelta.c refactor(sigmadelta): add hal sigmadelta driver 2019-11-21 11:53:07 +08:00
spi_bus_lock.c spi: fix config break and reduce overhead of the bus lock on SPI1 2020-04-22 16:06:13 +08:00
spi_common.c spi: allow using esp_flash and spi_master driver on the same bus 2020-03-26 22:08:26 +08:00
spi_master.c spi: fix config break and reduce overhead of the bus lock on SPI1 2020-04-22 16:06:13 +08:00
spi_slave.c spi: allow using esp_flash and spi_master driver on the same bus 2020-03-26 22:08:26 +08:00
timer.c bugfix(timer): add a macro to control making the XTAL related functions 2019-11-26 12:39:46 +00:00
touch_sensor_common.c global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00
uart.c freemodbus: fix long buffer failure 2020-03-30 22:05:48 +08:00