We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c87d7c commit 7fcec27Copy full SHA for 7fcec27
targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/system_clock.c
@@ -88,9 +88,9 @@ MBED_WEAK uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
88
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
89
RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct = { 0 };
90
91
-//#if HSE_VALUE != 24000000
92
-//#error Unsupported externall clock value, check HSE_VALUE define
93
-//#endif
+#if HSE_VALUE > 48000000 || HSE_VALUE < 4000000
+#error Unsupported externall clock value, check HSE_VALUE define
+#endif
94
95
/* Configure the main internal regulator output voltage */
96
__HAL_RCC_PWR_CLK_ENABLE();
0 commit comments