Browse Source

Merge pull request #5124 from tfx2001/master

guo 3 years ago
parent
commit
24f2ce62ba
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bsp/stm32/stm32h750-artpi-h750/board/board.c

+ 2 - 1
bsp/stm32/stm32h750-artpi-h750/board/board.c

@@ -32,8 +32,9 @@ void SystemClock_Config(void)
     /** Initializes the RCC Oscillators according to the specified parameters
     /** Initializes the RCC Oscillators according to the specified parameters
     * in the RCC_OscInitTypeDef structure.
     * in the RCC_OscInitTypeDef structure.
     */
     */
-    RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
+    RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_HSE;
     RCC_OscInitStruct.HSEState = RCC_HSE_ON;
     RCC_OscInitStruct.HSEState = RCC_HSE_ON;
+    RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
     RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
     RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
     RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
     RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
     RCC_OscInitStruct.PLL.PLLM = 5;
     RCC_OscInitStruct.PLL.PLLM = 5;