File tree 2 files changed +8
-4
lines changed
variants/STM32G4xx/G473C(B-C-E)U_G474C(B-C-E)U_G483CEU_G484CEU
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,9 @@ WEAK void SystemClock_Config(void)
111
111
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
112
112
RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
113
113
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
114
- RCC_OscInitStruct.PLL .PLLM = RCC_PLLM_DIV4 ;
114
+ RCC_OscInitStruct.PLL .PLLM = RCC_PLLM_DIV2 ;
115
115
RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE;
116
- RCC_OscInitStruct.PLL .PLLN = 85 ;
116
+ RCC_OscInitStruct.PLL .PLLN = 72 ;
117
117
RCC_OscInitStruct.PLL .PLLP = RCC_PLLP_DIV2;
118
118
RCC_OscInitStruct.PLL .PLLQ = RCC_PLLQ_DIV6;
119
119
RCC_OscInitStruct.PLL .PLLR = RCC_PLLR_DIV2;
@@ -135,7 +135,7 @@ WEAK void SystemClock_Config(void)
135
135
#ifdef USBCON
136
136
/* Initializes the peripherals clocks */
137
137
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USB;
138
- PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_HSI48 ;
138
+ PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_PLL ;
139
139
if (HAL_RCCEx_PeriphCLKConfig (&PeriphClkInit) != HAL_OK) {
140
140
Error_Handler ();
141
141
}
@@ -146,4 +146,4 @@ WEAK void SystemClock_Config(void)
146
146
} // extern "C"
147
147
#endif
148
148
149
- #endif /* ARDUINO_NUCLEO_G431RB */
149
+ #endif /* ARDUINO_WEACT_G474CE */
Original file line number Diff line number Diff line change 184
184
#define HAL_QSPI_MODULE_ENABLED
185
185
#endif
186
186
187
+ #ifndef HSE_VALUE
188
+ #define HSE_VALUE 8000000U
189
+ #endif
190
+
187
191
/*----------------------------------------------------------------------------
188
192
* Arduino objects - C++ only
189
193
*----------------------------------------------------------------------------*/
You can’t perform that action at this time.
0 commit comments