Skip to content

Commit 2d18f03

Browse files
wiranoRbb666
authored andcommitted
[cpu_cache] fix function replaced by macro
1 parent 5012edf commit 2d18f03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcpu/arm/cortex-m7/cpu_cache.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/* The L1-caches on all Cortex®-M7s are divided into lines of 32 bytes. */
1818
#define L1CACHE_LINESIZE_BYTE (32)
1919

20+
#ifdef RT_USING_CACHE
21+
2022
void rt_hw_cpu_icache_enable(void)
2123
{
2224
SCB_EnableICache();
@@ -89,3 +91,6 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
8991
RT_ASSERT(0);
9092
}
9193
}
94+
95+
#endif /* RT_USING_CACHE */
96+

0 commit comments

Comments
 (0)