From 7d81f18376507e5906713aba158ee874129a7d31 Mon Sep 17 00:00:00 2001 From: IOsetting Date: Tue, 24 Jan 2023 14:54:35 +0800 Subject: [PATCH] fix: rcc hsi example, re-init systick --- Examples/LL/RCC/RCC_HSI_Output/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/LL/RCC/RCC_HSI_Output/main.c b/Examples/LL/RCC/RCC_HSI_Output/main.c index 16f43b6..7734c3b 100644 --- a/Examples/LL/RCC/RCC_HSI_Output/main.c +++ b/Examples/LL/RCC/RCC_HSI_Output/main.c @@ -39,6 +39,8 @@ static void APP_SystemClockConfig(void) LL_RCC_SetAPB1Prescaler(LL_RCC_APB1_DIV_1); /* Update global SystemCoreClock(or through SystemCoreClockUpdate function) */ LL_SetSystemCoreClock(24000000); + /* Re-init frequency of SysTick source */ + LL_InitTick(24000000, 1000U); } static void APP_GPIOConfig(void)