File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_NUCLEO_L496ZG Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,10 @@ uint8_t SetSysClock_PLL_MSI(void)
341
341
PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_USB ;
342
342
PeriphClkInitStruct .UsbClockSelection = RCC_USBCLKSOURCE_MSI ; /* 48 MHz */
343
343
HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct );
344
+ /* Select LSE as clock source for LPUART1 */
345
+ PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_LPUART1 ;
346
+ PeriphClkInitStruct .Lpuart1ClockSelection = RCC_LPUART1CLKSOURCE_LSE ;
347
+ HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct );
344
348
345
349
// Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2 clocks dividers
346
350
RCC_ClkInitStruct .ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2 );
You can’t perform that action at this time.
0 commit comments