mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 17:52:36 +00:00
feat(spi_flash): Add config for adding auto check status after suspend to improve performance
This commit is contained in:
@@ -386,6 +386,10 @@ esp_err_t esp_flash_init_default_chip(void)
|
||||
cfg.tsus_val = TSUS_VAL_SUSPEND;
|
||||
#endif // CONFIG_SPI_FLASH_AUTO_SUSPEND
|
||||
|
||||
#if CONFIG_SPI_FLASH_AUTO_CHECK_SUSPEND_STATUS
|
||||
cfg.auto_waiti_pes = true;
|
||||
#endif
|
||||
|
||||
//the host is already initialized, only do init for the data and load it to the host
|
||||
esp_err_t err = memspi_host_init_pointers(&esp_flash_default_host, &cfg);
|
||||
if (err != ESP_OK) {
|
||||
|
Reference in New Issue
Block a user