summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authortfx2001 <[email protected]>2021-10-08 16:13:07 +0800
committertfx2001 <[email protected]>2021-10-08 16:24:56 +0800
commit7fe03a76e6fe6bf1f97d37202754353f76d5b359 (patch)
treef7595a4fef903a93b7dc740b0beb659946949df7 /bsp
parent634e5341a6ee73001988216962cda398a42b1ce4 (diff)
[bsp][artpi] enable HSI48 clock
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32/stm32h750-artpi-h750/board/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bsp/stm32/stm32h750-artpi-h750/board/board.c b/bsp/stm32/stm32h750-artpi-h750/board/board.c
index 0d8653aa26..77fe5fee7f 100644
--- a/bsp/stm32/stm32h750-artpi-h750/board/board.c
+++ b/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
* 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.HSI48State = RCC_HSI48_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 5;