Skip to content
Snippets Groups Projects
Commit d396a7e1 authored by roland van straten's avatar roland van straten Committed by Damien George
Browse files

stm32/system_stm32: Provide default value for HSI calibration.

If HSI is used the calibration value must be valid.  Fixes #4596.
parent 869a8b70
No related branches found
No related tags found
No related merge requests found
......@@ -416,6 +416,7 @@ void SystemClock_Config(void)
RCC_OscInitStruct.OscillatorType = MICROPY_HW_RCC_OSCILLATOR_TYPE;
RCC_OscInitStruct.HSEState = MICROPY_HW_RCC_HSE_STATE;
RCC_OscInitStruct.HSIState = MICROPY_HW_RCC_HSI_STATE;
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
#if defined(STM32H7)
RCC_OscInitStruct.CSIState = RCC_CSI_OFF;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment