Function esp_idf_svc::hal::sys::spi_flash_mmap_get_free_pages
source ยท pub unsafe extern "C" fn spi_flash_mmap_get_free_pages(
memory: u32,
) -> u32
Expand description
@brief get free pages number which can be mmap
This function will return number of free pages available in mmu table. This could be useful before calling actual spi_flash_mmap (maps flash range to DCache or ICache memory) to check if there is sufficient space available for mapping.
@param memory memory type of MMU table free page
@return number of free pages which can be mmaped