From 67a8aac71c0291cd419233b5ed435dc323f9fda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Mon, 1 Mar 2021 14:25:04 +0300 Subject: [PATCH] Calibrate HSE xtal, adjust on-chip load capacitors (#351) --- firmware/targets/f5/Src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/targets/f5/Src/main.c b/firmware/targets/f5/Src/main.c index 8b68d032..3d4fa871 100644 --- a/firmware/targets/f5/Src/main.c +++ b/firmware/targets/f5/Src/main.c @@ -73,6 +73,7 @@ void SystemClock_Config(void) __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_MEDIUMLOW); __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1); + LL_RCC_HSE_SetCapacitorTuning(0x18); RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE |RCC_OSCILLATORTYPE_LSE;