Skip to content

Commit 0a3fa54

Browse files
authored
board: Nucleo-G474RE: use HSE instead of HSI (#1376)
* board: Nucleo-G474RE: use HSE instead of HSI Signed-off-by: Frederic Pillon <[email protected]> * fix: astyle
1 parent 90179d0 commit 0a3fa54

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

variants/STM32G4xx/G473R(B-C-E)T_G474R(B-C-E)T_G483RET_G484RET/variant_NUCLEO_G474RE.cpp

+5-6
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)