2020-11-30 13:13:08 +08:00
|
|
|
#ifndef XIL_CACHE_H
|
|
|
|
#define XIL_CACHE_H
|
|
|
|
|
2021-06-08 19:28:08 +08:00
|
|
|
#include <rthw.h>
|
|
|
|
|
2020-11-30 13:13:08 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define Xil_DCacheFlushRange(addr, size) rt_hw_cpu_dcache_ops(RT_HW_CACHE_FLUSH, (void*)(addr), (size))
|
|
|
|
#define Xil_DCacheInvalidateRange(addr, size) rt_hw_cpu_dcache_ops(RT_HW_CACHE_INVALIDATE, (void*)(addr), (size))
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
/**
|
|
|
|
* @} End of "addtogroup r5_cache_apis".
|
|
|
|
*/
|