File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,11 @@ WEAK void SystemClock_Config(void)
159
159
RCC_ClkInitTypeDef RCC_ClkInitStruct;
160
160
RCC_PeriphCLKInitTypeDef PeriphClkInit;
161
161
162
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI ;
163
- RCC_OscInitStruct.HSIState = RCC_HSI_ON ;
164
- RCC_OscInitStruct.HSICalibrationValue = 16 ;
162
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE ;
163
+ RCC_OscInitStruct.HSEState = RCC_HSE_ON ;
164
+ RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV2 ;
165
165
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
166
- RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSI_DIV2 ;
166
+ RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE ;
167
167
RCC_OscInitStruct.PLL .PLLMUL = RCC_PLL_MUL6;
168
168
if (HAL_RCC_OscConfig (&RCC_OscInitStruct) != HAL_OK)
169
169
{
You can’t perform that action at this time.
0 commit comments