Skip to content

Commit 6d50534

Browse files
committed
clocks cleanup
1 parent 294f586 commit 6d50534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/stm/peripherals/stm32l4/clocks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ void stm32_peripherals_clocks_init(void) {
8484
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7;
8585
RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2;
8686
RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2;
87-
88-
__HAL_RCC_HSI48_ENABLE();
8987
#endif
9088

9189
HAL_CHECK(HAL_RCC_OscConfig(&RCC_OscInitStruct));
9290

91+
#ifdef STM32L4R5xx
9392
/* Enable MSI Auto-calibration through LSE */
9493
HAL_RCCEx_EnableMSIPLLMode();
94+
#endif
9595

9696
/* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2
9797
clocks dividers */

0 commit comments

Comments
 (0)