From 2fd896dc8947a7d633e833f55e8ede44ae87bd3e Mon Sep 17 00:00:00 2001 From: liukangcc Date: Wed, 13 Oct 2021 10:45:46 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20fix=20SCB=5FEnableDCache=20=E5=AE=8F?= =?UTF-8?q?=E4=B8=8E=E5=87=BD=E6=95=B0=E5=90=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/libraries/HAL_Drivers/drv_common.c | 4 ++-- 1 file 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