mirror of https://github.com/ARMmbed/mbed-os.git
Added HSE range validation for STM32g431xB
parent
7c87d7c239
commit
7fcec27a4a
|
@ -88,9 +88,9 @@ MBED_WEAK uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||||
RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct = { 0 };
|
RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct = { 0 };
|
||||||
|
|
||||||
//#if HSE_VALUE != 24000000
|
#if HSE_VALUE > 48000000 || HSE_VALUE < 4000000
|
||||||
//#error Unsupported externall clock value, check HSE_VALUE define
|
#error Unsupported externall clock value, check HSE_VALUE define
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
/* Configure the main internal regulator output voltage */
|
/* Configure the main internal regulator output voltage */
|
||||||
__HAL_RCC_PWR_CLK_ENABLE();
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
|
Loading…
Reference in New Issue