MT2523 API Reference  LinkIt SDK v4
Define

Overview

Macros

#define HAL_CACHE_LINE_SIZE   (32)
 This MACRO defines the CACHE line size.
 
#define HAL_CACHE_VIRTUAL_TO_PHYSICAL(address)   (address & (~VRAM_BASE))
 This MACRO converts the virtual address to physical address.
 
#define HAL_CACHE_PHYSICAL_TO_VIRTUAL(address)   (address | VRAM_BASE)
 This MACRO converts the physical address to virtual address.
 
#define HAL_CACHE_IS_BUFFER_CACHEABLE(address, length)   (((address >= VRAM_BASE) && ((address+length) < (VRAM_BASE+VRAM_LENGTH)))?1:0)
 This MACRO checks whether the buffer is cacheable or not.