Explorar o código

[update] fix SCB_EnableDCache 宏与函数名冲突

liukangcc %!s(int64=3) %!d(string=hai) anos
pai
achega
2fd896dc89
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bsp/stm32/libraries/HAL_Drivers/drv_common.c

+ 2 - 2
bsp/stm32/libraries/HAL_Drivers/drv_common.c

@@ -150,12 +150,12 @@ void rt_hw_us_delay(rt_uint32_t us)
  */
 RT_WEAK void rt_hw_board_init()
 {
-#ifdef SCB_EnableICache
+#ifdef BSP_SCB_ENABLE_I_CACHE
     /* Enable I-Cache---------------------------------------------------------*/
     SCB_EnableICache();
 #endif
 
-#ifdef SCB_EnableDCache
+#ifdef BSP_SCB_ENABLE_D_CACHE
     /* Enable D-Cache---------------------------------------------------------*/
     SCB_EnableDCache();
 #endif