From 817ef4690d459bcd799ee16924f82b245372338f Mon Sep 17 00:00:00 2001 From: Brendan McDonnell <105459350+bmcdonnell-npm@users.noreply.github.com> Date: Fri, 27 May 2022 14:26:03 -0400 Subject: [PATCH] Fix example macro parameter --- Projects/STM32F103RB-Nucleo/Examples_LL/TIM/TIM_DMA/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/STM32F103RB-Nucleo/Examples_LL/TIM/TIM_DMA/Src/main.c b/Projects/STM32F103RB-Nucleo/Examples_LL/TIM/TIM_DMA/Src/main.c index 776f14c..4c15d4a 100644 --- a/Projects/STM32F103RB-Nucleo/Examples_LL/TIM/TIM_DMA/Src/main.c +++ b/Projects/STM32F103RB-Nucleo/Examples_LL/TIM/TIM_DMA/Src/main.c @@ -176,7 +176,7 @@ __STATIC_INLINE void Configure_TIM(void) /* TIM3CLK = SystemCoreClock / (APB prescaler & multiplier) */ TimOutClock = SystemCoreClock/1; - LL_TIM_SetAutoReload(TIM3, __LL_TIM_CALC_ARR(TimOutClock, LL_TIM_COUNTERMODE_UP, 17570)); + LL_TIM_SetAutoReload(TIM3, __LL_TIM_CALC_ARR(TimOutClock, LL_TIM_GetPrescaler(TIM3), 17570)); /* Set the repetition counter in order to generate one update event every 4 */ /* counter cycles. */