diff options
| author | HubretXie <[email protected]> | 2019-11-26 09:30:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-26 09:30:21 +0800 |
| commit | 17f7f1c7ca2581b2e308888f8acb99ca8a541422 (patch) | |
| tree | 5236e93ab1e4e24508d4ebf4540b6743dd7c9a41 /libcpu/arm/cortex-m7/cpu_cache.c | |
| parent | 9662e18c3688681cd95ebd65242773dbe7c1366b (diff) | |
| parent | e459084fe028c837762d40326a9be3dfdc179894 (diff) | |
Merge pull request #8 from RT-Thread/master
sync
Diffstat (limited to 'libcpu/arm/cortex-m7/cpu_cache.c')
| -rw-r--r-- | libcpu/arm/cortex-m7/cpu_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpu/arm/cortex-m7/cpu_cache.c b/libcpu/arm/cortex-m7/cpu_cache.c index 4a1a9c2201..350b819c00 100644 --- a/libcpu/arm/cortex-m7/cpu_cache.c +++ b/libcpu/arm/cortex-m7/cpu_cache.c @@ -72,15 +72,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size) if (ops & (RT_HW_CACHE_FLUSH | RT_HW_CACHE_INVALIDATE)) { - SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte); + SCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte); } else if (ops & RT_HW_CACHE_FLUSH) { - SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte); + SCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte); } else if (ops & RT_HW_CACHE_INVALIDATE) { - SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte); + SCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte); } else { |
