Fix example macro parameter
This commit is contained in:
parent
218b5100dd
commit
817ef4690d
|
|
@ -176,7 +176,7 @@ __STATIC_INLINE void Configure_TIM(void)
|
||||||
|
|
||||||
/* TIM3CLK = SystemCoreClock / (APB prescaler & multiplier) */
|
/* TIM3CLK = SystemCoreClock / (APB prescaler & multiplier) */
|
||||||
TimOutClock = SystemCoreClock/1;
|
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 */
|
/* Set the repetition counter in order to generate one update event every 4 */
|
||||||
/* counter cycles. */
|
/* counter cycles. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue