diff options
| author | roland van straten <roland@van-straten.org> | 2019-03-24 20:53:27 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-03-26 17:10:21 +1100 |
| commit | d396a7e10d69f9490ca3aaa0b2ca147223f20314 (patch) | |
| tree | 0e35282c8eec3f3239f39f24a595cb37d06ee470 | |
| parent | 869a8b70ce384be7c8ab7cfbde1de683ba2fc077 (diff) | |
stm32/system_stm32: Provide default value for HSI calibration.
If HSI is used the calibration value must be valid. Fixes #4596.
| -rw-r--r-- | ports/stm32/system_stm32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/system_stm32.c b/ports/stm32/system_stm32.c index e0f054500..be8badea4 100644 --- a/ports/stm32/system_stm32.c +++ b/ports/stm32/system_stm32.c @@ -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 |
