mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
dc6d6f225e
Partially reverted 08f1bbe0c75382f1702e40c941e93314285105d4. The host should have this flexibility, which is consistent to the cs_hold argument. However, the user should know as less as possible about the host. So the wrapper layer (esp_flash_spi_init.c) should cover this, helping to set cs_setup to 1, to meet the common requirements.
See the spi_flash.rst in the programming guide folder for more details. The docs above is for the new SPI Flash API above 4.0, for legacy implementation (CONFIG_SPI_FLASH_USE_LEGACY_IMPL enabled), read README_legayc.rst in the same folder with this readme.