소스 검색

[bsp][stm32][artpi]:fix artpi nano (#10122)

CYFS 1 개월 전
부모
커밋
b0e7cba9fd

+ 6 - 1
bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml

@@ -1,7 +1,12 @@
 scons.args: &scons
     scons_arg:
       - '--strict'
-
+# ------ nano CI ------
+nano:
+    <<: *scons
+    kconfig:
+      - CONFIG_RT_USING_NANO=y
+      
 # ------ peripheral CI ------
 peripheral.eth:
     kconfig:

+ 0 - 1
bsp/stm32/stm32h750-artpi/applications/main.c

@@ -9,7 +9,6 @@
  */
 
 #include <rtthread.h>
-#include <rtdevice.h>
 #include <board.h>
 
 /* defined the LED0 pin: PI8 */

+ 3 - 3
libcpu/arm/cortex-m7/cpu_cache.c

@@ -76,15 +76,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
 
     if ((ops & clean_invalid) == clean_invalid)
     {
-        SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
+        SCB_CleanInvalidateDCache_by_Addr((void *)startAddr, size_byte);
     }
     else if (ops & RT_HW_CACHE_FLUSH)
     {
-        SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
+        SCB_CleanDCache_by_Addr((void *)startAddr, size_byte);
     }
     else if (ops & RT_HW_CACHE_INVALIDATE)
     {
-        SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
+        SCB_InvalidateDCache_by_Addr((void *)startAddr, size_byte);
     }
     else
     {