kopia lustrzana https://github.com/espressif/esp-idf
fdf983e0c4
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
|
||
---|---|---|
.. | ||
ble | ||
catch | ||
ci | ||
cmake | ||
docker | ||
esp_app_trace | ||
esp_prov | ||
find_build_apps | ||
idf_py_actions | ||
kconfig | ||
kconfig_new | ||
ldgen | ||
mass_mfg | ||
test_apps | ||
test_idf_monitor | ||
test_idf_py | ||
test_idf_size | ||
test_idf_tools | ||
unit-test-app | ||
windows | ||
build_apps.py | ||
check_kconfigs.py | ||
check_python_dependencies.py | ||
check_term.py | ||
eclipse-code-style.xml | ||
find_apps.py | ||
format-minimal.sh | ||
format.sh | ||
gen_esp_err_to_name.py | ||
idf.py | ||
idf_monitor.py | ||
idf_size.py | ||
idf_tools.py | ||
set-submodules-to-github.sh | ||
test_check_kconfigs.py | ||
toolchain_versions.mk | ||
tools.json | ||
tools_schema.json |