esp_rom: put rom cache related functions to cache.h

This commit is contained in:
jiangguangming
2023-03-06 17:55:16 +08:00
parent 91b86f55d5
commit 87f2eb9e2a
11 changed files with 68 additions and 26 deletions

View File

@@ -584,6 +584,14 @@ uint32_t Cache_Get_IROM_MMU_End(void);
*/
uint32_t Cache_Get_DROM_MMU_End(void);
/**
* @brief Configure cache MMU page size according to instruction and rodata size
*
* @param irom_size The instruction cache MMU page size
* @param drom_size The rodata data cache MMU page size
*/
void Cache_Set_IDROM_MMU_Size(uint32_t irom_size, uint32_t drom_size);
#define Cache_Dbus_MMU_Set(ext_ram, vaddr, paddr, psize, num, fixed) \
Cache_MSPI_MMU_Set(ets_efuse_cache_encryption_enabled() ? MMU_SENSITIVE : 0, ext_ram, vaddr, paddr, psize, num, fixed)