File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ void Error_Handler(void)
3232void SystemClock_Config (void )
3333{
3434 SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND );
35- NVIC_SetPriority (SysTick_IRQn , 0 );
3635}
3736
3837/**
@@ -65,6 +64,12 @@ void rt_hw_board_init()
6564 SCB -> VTOR = (0x08000000 & NVIC_VTOR_MASK );
6665#endif
6766
67+ /* Enable IChace */
68+ rt_hw_cpu_icache_enable ();
69+
70+ /* Enable DChace */
71+ rt_hw_cpu_dcache_enable ();
72+
6873 SystemClock_Config ();
6974
7075#ifdef RT_USING_SERIAL
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ void Error_Handler(void)
3232void SystemClock_Config (void )
3333{
3434 SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND );
35- NVIC_SetPriority (SysTick_IRQn , 0 );
3635}
3736
3837/**
@@ -65,6 +64,12 @@ void rt_hw_board_init()
6564 SCB -> VTOR = (0x08000000 & NVIC_VTOR_MASK );
6665#endif
6766
67+ /* Enable IChace */
68+ rt_hw_cpu_icache_enable ();
69+
70+ /* Enable DChace */
71+ rt_hw_cpu_dcache_enable ();
72+
6873 SystemClock_Config ();
6974
7075#ifdef RT_USING_SERIAL
You can’t perform that action at this time.
0 commit comments