File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
variants/STM32G4xx/G473R(B-C-E)T_G474R(B-C-E)T_G483RET_G484RET Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -113,14 +113,13 @@ WEAK void SystemClock_Config(void)
113113 /* Configure the main internal regulator output voltage */
114114 HAL_PWREx_ControlVoltageScaling (PWR_REGULATOR_VOLTAGE_SCALE1_BOOST);
115115 /* Initializes the CPU, AHB and APB busses clocks */
116- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48;
117- RCC_OscInitStruct.HSIState = RCC_HSI_ON;
118- RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
116+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_HSE;
117+ RCC_OscInitStruct.HSEState = RCC_HSE_ON;
119118 RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
120119 RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
121- RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSI ;
122- RCC_OscInitStruct.PLL .PLLM = RCC_PLLM_DIV4 ;
123- RCC_OscInitStruct.PLL .PLLN = 85 ;
120+ RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE ;
121+ RCC_OscInitStruct.PLL .PLLM = RCC_PLLM_DIV2 ;
122+ RCC_OscInitStruct.PLL .PLLN = 28 ;
124123 RCC_OscInitStruct.PLL .PLLP = RCC_PLLP_DIV2;
125124 RCC_OscInitStruct.PLL .PLLQ = RCC_PLLQ_DIV2;
126125 RCC_OscInitStruct.PLL .PLLR = RCC_PLLR_DIV2;
You can’t perform that action at this time.
0 commit comments