mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
spi_flash: Add auto-suspend mode for ESP32-S2
Uses HW auto_wait_idle, HW auto_suspend and SW resume
This commit is contained in:

committed by
Cao Sen Miao

parent
afef16c2e9
commit
60e58eaddb
@@ -35,6 +35,7 @@
|
||||
.configure_host_io_mode = spi_flash_hal_configure_host_io_mode, \
|
||||
.poll_cmd_done = spi_flash_hal_poll_cmd_done, \
|
||||
.flush_cache = memspi_host_flush_cache, \
|
||||
.check_suspend = memspi_host_cb_check_suspend, \
|
||||
}
|
||||
|
||||
/// configuration for the memspi host
|
||||
@@ -176,3 +177,11 @@ int memspi_host_read_data_slicer(spi_flash_host_inst_t *host, uint32_t address,
|
||||
* @return Length that can actually be written in one `program_page` call in `spi_flash_host_driver_t`.
|
||||
*/
|
||||
int memspi_host_write_data_slicer(spi_flash_host_inst_t *host, uint32_t address, uint32_t len, uint32_t *align_address, uint32_t page_size);
|
||||
|
||||
/**
|
||||
* @brief Check the suspend status and resume a suspended operation.
|
||||
*
|
||||
* @param host The driver context.
|
||||
*
|
||||
*/
|
||||
void memspi_host_cb_check_suspend(spi_flash_host_inst_t *host);
|
||||
|
Reference in New Issue
Block a user