Merge pull request #5159 from liukangcc/master

[update] fix SCB_EnableDCache 宏与函数名冲突
This commit is contained in:
guo 2021-10-14 10:03:11 +08:00 committed by GitHub
commit 4351507752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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