Skip to content

Commit 3a9a055

Browse files
committed
fix: nucleo-l152RE: add missing clock configuration for ADC
Signed-off-by: Frederic Pillon <[email protected]>
1 parent c91b6ab commit 3a9a055

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: variants/STM32L1xx/L151RET_L152RET_L162RET/variant_NUCLEO_L152RE.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ WEAK void SystemClock_Config(void)
119119
* Initializes the RCC Oscillators according to the specified parameters
120120
* in the RCC_OscInitTypeDef structure.
121121
*/
122-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
122+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
123123
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
124+
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
125+
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
124126
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
125127
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
126128
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;

0 commit comments

Comments
 (0)