feat(spi_flash): support software resume after suspend in unicore

This commit is contained in:
C.S.M
2025-01-21 15:02:22 +08:00
parent aedf0408a6
commit d772cb3055
8 changed files with 79 additions and 13 deletions
+4
View File
@@ -128,6 +128,10 @@ esp_err_t spi_flash_hal_init(spi_flash_hal_context_t *data_out, const spi_flash_
data_out->tsus_val = cfg->tsus_val;
}
#if CONFIG_SPI_FLASH_SOFTWARE_RESUME
data_out->flags &= ~SPI_FLASH_HOST_CONTEXT_FLAG_AUTO_RESUME;
#endif
#if SOC_SPI_MEM_SUPPORT_OPI_MODE
if (cfg->octal_mode_en) {
data_out->flags |= SPI_FLASH_HOST_CONTEXT_FLAG_OCTAL_MODE;