We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18d9c10 commit 7f07a85Copy full SHA for 7f07a85
libraries/SrcWrapper/src/stm32/clock.c
@@ -121,14 +121,21 @@ void enableClock(sourceClock_t source)
121
#endif
122
break;
123
case HSI_CLOCK:
124
+#if defined(__HAL_RCC_HSI_ENABLE)
125
__HAL_RCC_HSI_ENABLE();
126
+#endif
127
+#if defined(__HAL_RCC_HSI_CONFIG)
128
+ __HAL_RCC_HSI_CONFIG(RCC_HSI_ON);
129
130
if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) {
131
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
132
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
133
+#if !defined(STM32WB0x)
134
#if defined(STM32MP1xx)
135
RCC_OscInitStruct.HSICalibrationValue = 0x00;
136
#else
137
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
138
139
140
}
141
0 commit comments