Home
last modified time | relevance | path

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

/device/soc/esp/esp32/components/spi_flash/esp32/
Dspi_flash_rom_patch.c620 uint32_t sector_no; in esp_rom_spiflash_erase_area() local
644 sector_no = start_addr / 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()
660 if (ESP_ROM_SPIFLASH_RESULT_OK != esp_rom_spiflash_erase_sector(sector_no)) { in esp_rom_spiflash_erase_area()
663 sector_no++; 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()
676 if (ESP_ROM_SPIFLASH_RESULT_OK != esp_rom_spiflash_erase_sector(sector_no)) { in esp_rom_spiflash_erase_area()
679 sector_no++; in esp_rom_spiflash_erase_area()