spi_flash: make spiflash compatible with ESP32C3 and ESP32S3 ROM

This commit is contained in:
jiangguangming
2021-03-11 19:39:27 +08:00
parent 23eff08638
commit ae04518a32
4 changed files with 22 additions and 1 deletions
@@ -189,6 +189,11 @@ struct spi_flash_host_driver_s {
*/
esp_err_t (*flush_cache)(spi_flash_host_inst_t* host, uint32_t addr, uint32_t size);
/**
* Suspend check erase/program operation, reserved for ESP32-C3 and ESP32-S3 spi flash ROM IMPL.
*/
void (*check_suspend)(spi_flash_host_inst_t *host);
/**
* Resume flash from suspend manually
*/