File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
targets/TARGET_STM/TARGET_STM32L5 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -180,14 +180,14 @@ uint8_t SetSysClock_PLL_MSI(void)
180180#if DEVICE_TRNG
181181 PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_RNG ;
182182 PeriphClkInitStruct .RngClockSelection = RCC_RNGCLKSOURCE_HSI48 ;
183- if (HAL_RCCEx_PeriphCLKConfig (& RCC_PeriphClkInit ) != HAL_OK ) {
183+ if (HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct ) != HAL_OK ) {
184184 return 0 ; // FAIL
185185 }
186186#endif
187187#if DEVICE_USBDEVICE
188- RCC_PeriphClkInit .PeriphClockSelection = RCC_PERIPHCLK_USB ;
189- RCC_PeriphClkInit .UsbClockSelection = RCC_USBCLKSOURCE_HSI48 ;
190- if (HAL_RCCEx_PeriphCLKConfig (& RCC_PeriphClkInit ) != HAL_OK ) {
188+ PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_USB ;
189+ PeriphClkInitStruct .UsbClockSelection = RCC_USBCLKSOURCE_HSI48 ;
190+ if (HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct ) != HAL_OK ) {
191191 return 0 ; // FAIL
192192 }
193193#endif
You can’t perform that action at this time.
0 commit comments