1.2.2 Cache System Service

The Cache system service uses either CMSIS Cache interfaces or the device specific Cache Peripheral interfaces based on the device selection to perform the Data and Instruction Cache operations. It provides interface to Enable, Disable, Clean, Invalidate Data and Instruction Cache.

Abstraction Model

This library provides an abstraction of the Cache subsystem that is used by device drivers, middleware libraries and applications to perform Cache maintenance operations.

sys_cache_abstraction_model

Library Interface

Cache system service provides the following interfaces:

Functions

NameDescription
SYS_CACHE_EnableCachesEnables both Instruction and Data Caches
SYS_CACHE_DisableCachesDisables both Instruction and Data Caches
SYS_CACHE_EnableICacheEnable Instruction Cache
SYS_CACHE_DisableICacheDisable Instruction Cache
SYS_CACHE_InvalidateICacheInvalidate Instruction Cache
SYS_CACHE_EnableDCacheEnable Data Cache
SYS_CACHE_DisableDCacheDisable Data Cache
SYS_CACHE_InvalidateDCacheInvalidate Data Cache
SYS_CACHE_CleanDCacheClean Data Cache
SYS_CACHE_CleanInvalidateDCacheClean and Invalidate Data Cache
SYS_CACHE_InvalidateDCache_by_AddrInvalidate Data Cache by address
SYS_CACHE_CleanDCache_by_AddrData Cache Clean by address
SYS_CACHE_CleanInvalidateDCache_by_AddrData Cache Clean and Invalidate by address