Browse Source

Merge pull request #3150 from lymzzyh/M7-cache

[libcpu][M7]修复cache编译警告
Bernard Xiong 5 years ago
parent
commit
2c61050570
1 changed files with 3 additions and 3 deletions
  1. 3 3
      libcpu/arm/cortex-m7/cpu_cache.c

+ 3 - 3
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
     {