summaryrefslogtreecommitdiff
path: root/bsp/stm32
diff options
context:
space:
mode:
authorliukangcc <[email protected]>2021-10-13 10:45:46 +0800
committerliukangcc <[email protected]>2021-10-13 14:07:05 +0800
commit2fd896dc8947a7d633e833f55e8ede44ae87bd3e (patch)
tree111dbaf3c95a65c38c3e1b11d9775a13698a69e7 /bsp/stm32
parente3045389d0b9e1157571c961cf77e271d0aaf3a7 (diff)
[update] fix SCB_EnableDCache 宏与函数名冲突
Diffstat (limited to 'bsp/stm32')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drv_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_common.c b/bsp/stm32/libraries/HAL_Drivers/drv_common.c
index 6cd9130a4a..4c10ded147 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drv_common.c
+++ b/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