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)
180
180
#if DEVICE_TRNG
181
181
PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_RNG ;
182
182
PeriphClkInitStruct .RngClockSelection = RCC_RNGCLKSOURCE_HSI48 ;
183
- if (HAL_RCCEx_PeriphCLKConfig (& RCC_PeriphClkInit ) != HAL_OK ) {
183
+ if (HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct ) != HAL_OK ) {
184
184
return 0 ; // FAIL
185
185
}
186
186
#endif
187
187
#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 ) {
191
191
return 0 ; // FAIL
192
192
}
193
193
#endif
You can’t perform that action at this time.
0 commit comments