Calibrate HSE xtal, adjust on-chip load capacitors (#351)
This commit is contained in:
parent
e39e1c3dce
commit
67a8aac71c
@ -73,6 +73,7 @@ void SystemClock_Config(void)
|
|||||||
|
|
||||||
__HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_MEDIUMLOW);
|
__HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_MEDIUMLOW);
|
||||||
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||||||
|
LL_RCC_HSE_SetCapacitorTuning(0x18);
|
||||||
|
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE
|
||||||
|RCC_OSCILLATORTYPE_LSE;
|
|RCC_OSCILLATORTYPE_LSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user