File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
targets/TARGET_STM/TARGET_STM32L5 Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,18 +121,18 @@ uint8_t SetSysClock_PLL_MSI(void)
121
121
{
122
122
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0 };
123
123
RCC_OscInitTypeDef RCC_OscInitStruct = {0 };
124
-
125
- /* Configure the main internal regulator output voltage */
126
- if (HAL_PWREx_ControlVoltageScaling (PWR_REGULATOR_VOLTAGE_SCALE0 ) != HAL_OK ) {
127
- return 0 ; // FAIL
128
- }
129
-
124
+
130
125
/* Configure LSE Drive Capability */
131
126
__HAL_RCC_PWR_CLK_ENABLE ();
132
127
__HAL_RCC_SYSCFG_CLK_ENABLE ();
133
128
HAL_PWR_EnableBkUpAccess ();
134
129
__HAL_RCC_RTCAPB_CLK_ENABLE ();
135
130
131
+ /* Configure the main internal regulator output voltage */
132
+ if (HAL_PWREx_ControlVoltageScaling (PWR_REGULATOR_VOLTAGE_SCALE0 ) != HAL_OK ) {
133
+ return 0 ; // FAIL
134
+ }
135
+
136
136
#if MBED_CONF_TARGET_LSE_AVAILABLE
137
137
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSE ;
138
138
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ;
You can’t perform that action at this time.
0 commit comments