diff options
| author | Bernard Xiong <[email protected]> | 2019-10-24 07:59:32 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-24 07:59:32 +0800 |
| commit | 2c610505704b01a0983f9558403cdeafaf498542 (patch) | |
| tree | de86048aa2ace83ad7a25ba5fdcab499d771168d | |
| parent | 39f41201da87fa91357941718d1cd59847b57488 (diff) | |
| parent | cabdbf5bbf8faadee94d01316509ce6e1e82c56f (diff) | |
Merge pull request #3150 from lymzzyh/M7-cache
[libcpu][M7]修复cache编译警告
| -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 { |
