diff options
| author | guo <[email protected]> | 2021-10-14 10:03:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-14 10:03:11 +0800 |
| commit | 4351507752f43d7bbec0f62be7619cd52447a0d1 (patch) | |
| tree | 5ddd9b014014ae669d6a76607b504975c68a429f | |
| parent | 61e993d6562c1ae4b5eebabdcbe759e8e3a583d2 (diff) | |
| parent | 2fd896dc8947a7d633e833f55e8ede44ae87bd3e (diff) | |
Merge pull request #5159 from liukangcc/master
[update] fix SCB_EnableDCache 宏与函数名冲突
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_common.c | 4 |
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 81983b36cd..87707d68ea 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_common.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_common.c @@ -161,12 +161,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 |
