Added HSE range validation for STM32g431xB

pull/15385/head
Leonard 2023-03-02 12:40:16 +11:00
parent 7c87d7c239
commit 7fcec27a4a
1 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@ MBED_WEAK uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct = { 0 };
//#if HSE_VALUE != 24000000
//#error Unsupported externall clock value, check HSE_VALUE define
//#endif
#if HSE_VALUE > 48000000 || HSE_VALUE < 4000000
#error Unsupported externall clock value, check HSE_VALUE define
#endif
/* Configure the main internal regulator output voltage */
__HAL_RCC_PWR_CLK_ENABLE();