@@ -45,43 +45,6 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass);
4545uint8_t SetSysClock_PLL_HSI (void );
4646#endif /* ((CLOCK_SOURCE) & USE_PLL_HSI) */
4747
48- /**
49- * @brief Enable ICACHE
50- * @param None
51- * @retval None
52- */
53-
54- static void EnableICache ()
55- {
56- MPU_Attributes_InitTypeDef attr ;
57- MPU_Region_InitTypeDef region ;
58-
59- /* Disable MPU before perloading and config update */
60- HAL_MPU_Disable ();
61-
62- /* Define cacheable memory via MPU */
63- attr .Number = MPU_ATTRIBUTES_NUMBER5 ;
64- attr .Attributes = INNER_OUTER (MPU_NOT_CACHEABLE );
65- HAL_MPU_ConfigMemoryAttributes (& attr );
66-
67- /* BaseAddress-LimitAddress configuration */
68- region .Enable = MPU_REGION_ENABLE ;
69- region .Number = MPU_REGION_NUMBER5 ;
70- region .AttributesIndex = MPU_ATTRIBUTES_NUMBER5 ;
71- region .BaseAddress = 0x08FFF800 ;
72- region .LimitAddress = 0x08FFFFFF ;
73- region .AccessPermission = MPU_REGION_ALL_RW ;
74- region .DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE ;
75- region .IsShareable = MPU_ACCESS_NOT_SHAREABLE ;
76- HAL_MPU_ConfigRegion (& region );
77-
78- /* Enable the MPU */
79- HAL_MPU_Enable (MPU_PRIVILEGED_DEFAULT );
80-
81- /* Enable ICACHE */
82- HAL_ICACHE_Enable ();
83- }
84-
8548/**
8649 * @brief Configures the System clock source
8750 * @note This function should be called only once the RCC clock configuration
@@ -111,7 +74,6 @@ void SetSysClock(void)
11174 }
11275 }
11376 }
114- EnableICache ();
11577}
11678
11779
0 commit comments