support SPI_FLASH_ENABLE_COUNTERS feature on esp_flash driver and rename the functions to esp_flash_xx

This commit is contained in:
gaoxu
2022-08-23 12:31:53 +08:00
committed by wanlei
parent 033f737205
commit 542a61b6cb
9 changed files with 126 additions and 82 deletions

View File

@@ -26,14 +26,14 @@ TEST_CASE("Test erase partition", "[spi_flash][esp_flash]")
const esp_partition_t *part = get_test_data_partition();
#if CONFIG_SPI_FLASH_ENABLE_COUNTERS
spi_flash_reset_counters();
esp_flash_reset_counters();
#endif
// erase whole partition
ESP_ERROR_CHECK( esp_partition_erase_range(part, 0, part->size) );
#if CONFIG_SPI_FLASH_ENABLE_COUNTERS
spi_flash_dump_counters();
esp_flash_dump_counters(stdout);
#endif
// put some dummy data on sector boundaries