Home
last modified time | relevance | path

Searched refs:num_sectors (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-2.7.6/components/nvs_flash/test_nvs_host/
Dspi_flash_emulation.cpp41 size_t num_sectors = size / SPI_FLASH_SEC_SIZE; in esp_partition_erase_range() local
42 for (size_t sector = start_sector; sector < (start_sector + num_sectors); sector++) { in esp_partition_erase_range()
Dtest_fixtures.hpp84 size_t num_sectors = size / SPI_FLASH_SEC_SIZE; in erase_range() local
85 for (size_t sector = start_sector; sector < (start_sector + num_sectors); sector++) { in erase_range()
/hal_espressif-2.7.6/components/spi_flash/test/
Dtest_esp_flash.c460 static uint32_t erase_test_region(const esp_partition_t *part, int num_sectors) in erase_test_region() argument
469 TEST_ASSERT(num_sectors * 4096 <= part->size); in erase_test_region()
474 TEST_ASSERT_EQUAL_HEX32(ESP_OK, esp_flash_erase_region(chip, offs, num_sectors * 4096) ); in erase_test_region()
477 for (int i = 0; i < num_sectors; i++) { in erase_test_region()