100
100
1) by calling CMSIS function SystemCoreClockUpdate()
101
101
2) by calling HAL API function HAL_RCC_GetHCLKFreq()
102
102
3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
103
- Note: If you use this function to configure the system clock there is no need to
104
- call the 2 first functions listed above, since SystemCoreClock variable is
105
- updated automatically.
103
+ Note: If you use this function to configure the system clock; then there
104
+ is no need to call the 2 first functions listed above, since SystemCoreClock
105
+ variable is updated automatically.
106
106
*/
107
107
uint32_t SystemCoreClock = 8000000 ;
108
108
@@ -126,7 +126,7 @@ const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};
126
126
*/
127
127
128
128
/**
129
- * @brief Setup the microcontroller system.
129
+ * @brief Setup the microcontroller system
130
130
* @param None
131
131
* @retval None
132
132
*/
@@ -212,14 +212,14 @@ void SystemInit(void)
212
212
* - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**)
213
213
* or HSI_VALUE(*) multiplied/divided by the PLL factors.
214
214
*
215
- * (*) HSI_VALUE is a constant defined in stm32f0xx_hal .h file (default value
215
+ * (*) HSI_VALUE is a constant defined in stm32f0xx_hal_conf .h file (default value
216
216
* 8 MHz) but the real value may vary depending on the variations
217
217
* in voltage and temperature.
218
218
*
219
- * (**) HSE_VALUE is a constant defined in stm32f0xx_hal .h file (default value
220
- * 8 MHz ), user has to ensure that HSE_VALUE is same as the real
221
- * frequency of the crystal used. Otherwise, this function may
222
- * have wrong result.
219
+ * (**) HSE_VALUE is a constant defined in stm32f0xx_hal_conf .h file (its value
220
+ * depends on the application requirements ), user has to ensure that HSE_VALUE
221
+ * is same as the real frequency of the crystal used. Otherwise, this function
222
+ * may have wrong result.
223
223
*
224
224
* - The result of this function could be not correct when using fractional
225
225
* value for HSE crystal.
0 commit comments