flash_mmap: migrate to use esp_mmap driver

This commit is contained in:
Armando
2022-11-02 19:18:57 +08:00
parent e76c52d4df
commit d233f3535d
13 changed files with 276 additions and 422 deletions

View File

@@ -45,7 +45,7 @@ esp_err_t esp_partition_read(const esp_partition_t *partition,
/* Encrypted partitions need to be read via a cache mapping */
const void *buf;
spi_flash_mmap_handle_t handle;
esp_partition_mmap_handle_t handle;
esp_err_t err = esp_partition_mmap(partition, src_offset, size,
SPI_FLASH_MMAP_DATA, &buf, &handle);