Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/esptool_py/esptool/esptool/targets/
Desp8266.py154 sectors_per_block = 16
159 head_sectors = sectors_per_block - (start_sector % sectors_per_block)
/hal_espressif-3.6.0/components/spi_flash/sim/
DSpiFlash.cpp114 uint32_t sectors_per_block = (this->block_size / this->sector_size); in erase_block() local
115 uint32_t start_sector = block * sectors_per_block; in erase_block()
117 for (int i = start_sector; i < start_sector + sectors_per_block; i++) { in erase_block()
/hal_espressif-3.6.0/components/spi_flash/
Dflash_ops.c326 const size_t sectors_per_block = BLOCK_ERASE_SIZE / SPI_FLASH_SEC_SIZE; in spi_flash_erase_range() local
340 if (sector % sectors_per_block == 0 && end - sector >= sectors_per_block) { in spi_flash_erase_range()
341 rc = esp_rom_spiflash_erase_block(sector / sectors_per_block); in spi_flash_erase_range()
342 sector += sectors_per_block; in spi_flash_erase_range()
343 COUNTER_ADD_BYTES(erase, sectors_per_block * SPI_FLASH_SEC_SIZE); in spi_flash_erase_range()
/hal_espressif-3.6.0/components/bootloader_support/src/
Dbootloader_flash.c469 const size_t sectors_per_block = FLASH_BLOCK_SIZE / FLASH_SECTOR_SIZE; in bootloader_flash_erase_range() local
473 if (sector % sectors_per_block == 0 && end - sector >= sectors_per_block) { in bootloader_flash_erase_range()
474 rc = esp_rom_spiflash_erase_block(sector / sectors_per_block); in bootloader_flash_erase_range()
475 sector += sectors_per_block; in bootloader_flash_erase_range()