mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-27 23:37:03 +08:00
[cpu_cache] fix function replaced by macro
This commit is contained in:
parent
6493b2356f
commit
202bacb44d
@ -17,6 +17,8 @@
|
|||||||
/* The L1-caches on all Cortex®-M7s are divided into lines of 32 bytes. */
|
/* The L1-caches on all Cortex®-M7s are divided into lines of 32 bytes. */
|
||||||
#define L1CACHE_LINESIZE_BYTE (32)
|
#define L1CACHE_LINESIZE_BYTE (32)
|
||||||
|
|
||||||
|
#ifdef RT_USING_CACHE
|
||||||
|
|
||||||
void rt_hw_cpu_icache_enable(void)
|
void rt_hw_cpu_icache_enable(void)
|
||||||
{
|
{
|
||||||
SCB_EnableICache();
|
SCB_EnableICache();
|
||||||
@ -89,3 +91,6 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
|
|||||||
RT_ASSERT(0);
|
RT_ASSERT(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* RT_USING_CACHE */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user