File tree 1 file changed +5
-4
lines changed
variants/STM32F4xx/F401R(B-C-D-E)T
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,13 @@ WEAK void SystemClock_Config(void)
115
115
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2);
116
116
117
117
/* Initializes the CPU, AHB and APB busses clocks */
118
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
119
- RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
118
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
119
+ RCC_OscInitStruct.HSIState = RCC_HSI_ON;
120
+ RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
120
121
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
121
- RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE ;
122
+ RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSI ;
122
123
RCC_OscInitStruct.PLL .PLLM = 8 ;
123
- RCC_OscInitStruct.PLL .PLLN = 336 ;
124
+ RCC_OscInitStruct.PLL .PLLN = 168 ;
124
125
RCC_OscInitStruct.PLL .PLLP = RCC_PLLP_DIV4;
125
126
RCC_OscInitStruct.PLL .PLLQ = 7 ;
126
127
You can’t perform that action at this time.
0 commit comments