HAL
+
0
/6 examples
SourceVu will show references to
__LL_TIM_CALC_PSC
from the following samples and libraries:
Examples
STM32F411RE-Nucleo
Examples_LL
TIM
TIM_BreakAndDeadtime
TIM_OnePulse
TIM_OutputCompare
TIM_PWMOutput
TIM_PWMOutput_Init
TIM_TimeBase
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
HAL
__LL_TIM_CALC_PSC
__LL_TIM_CALC_PSC macro
HELPER macro calculating the prescaler value to achieve the required counter clock frequency.
Syntax
Show:
Summary
Declaration
from
stm32f4xx_ll_tim.h:1043
#define
__LL_TIM_CALC_PSC
(
__TIMCLK__
,
__CNTCLK__
)
\
(
(
(
__TIMCLK__
)
>=
(
__CNTCLK__
)
)
?
(
uint32_t
)
(
(
(
(
__TIMCLK__
)
+
(
__CNTCLK__
)
/
2U
)
/
(
__CNTCLK__
)
)
-
1U
)
:
0U
)
Arguments
Argument
Description
__TIMCLK__
timer input clock frequency (in Hz)
__CNTCLK__
counter clock frequency (in Hz)
Return value
Prescaler value (between Min_Data=0 and Max_Data=65535)
Notes
ex:
__LL_TIM_CALC_PSC
(80000000, 1000000);
Examples
__LL_TIM_CALC_PSC
is referenced by 6 libraries and example projects:
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out