Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/spi_flash/sim/
DSpiFlash.cpp30 #define DIV_AND_CEIL(x, y) ((x) / (y) + ((x) % (y) > 0)) macro
53 this->blocks = DIV_AND_CEIL(this->chip_size, this->block_size); in init()
54 this->sectors = DIV_AND_CEIL(this->chip_size, this->sector_size); in init()
55 this->pages = DIV_AND_CEIL(this->chip_size, this->page_size); in init()