Searched refs:sector_num_per_block (Results 1 – 1 of 1) sorted by relevance
621 uint32_t sector_num_per_block; in esp_rom_spiflash_erase_area() local645 sector_num_per_block = g_rom_spiflash_chip.block_size / g_rom_spiflash_chip.sector_size; in esp_rom_spiflash_erase_area()650 head_sector_num = sector_num_per_block - (sector_no % sector_num_per_block); in esp_rom_spiflash_erase_area()666 while (total_sector_num > sector_num_per_block) { in esp_rom_spiflash_erase_area()667 …if (ESP_ROM_SPIFLASH_RESULT_OK != esp_rom_spiflash_erase_block(sector_no / sector_num_per_block)) { in esp_rom_spiflash_erase_area()670 sector_no += sector_num_per_block; in esp_rom_spiflash_erase_area()671 total_sector_num -= sector_num_per_block; in esp_rom_spiflash_erase_area()