LL_TIM_DisableExternalClock
__STATIC_INLINE void LL_TIM_DisableExternalClock
(TIM_TypeDef * TIMx)
Disable external clock mode 2.
Macro
IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx)
can be used to check whether or not a timer instance
supports external clock mode2.
Reference Manual to
LL API cross
reference:
SMCR ECE LL_TIM_DisableExternalClock
LL_TIM_IsEnabledExternalClock
__STATIC_INLINE uint32_t LL_TIM_IsEnabledExternalClock
(TIM_TypeDef * TIMx)
Indicate whether external clock mode 2 is enabled.
Macro
IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx)
can be used to check whether or not a timer instance
supports external clock mode2.
Reference Manual to
LL API cross
reference:
SMCR ECE LL_TIM_IsEnabledExternalClock
LL_TIM_SetClockSource
__STATIC_INLINE void LL_TIM_SetClockSource
(TIM_TypeDef * TIMx, uint32_t ClockSource)
Set the clock source of the counter clock.
TIMx: Timer instance
ClockSource: This parameter can be one of the following
values:
LL_TIM_CLOCKSOURCE_INTERNAL
LL_TIM_CLOCKSOURCE_EXT_MODE1
LL_TIM_CLOCKSOURCE_EXT_MODE2
when selected clock source is external clock mode 1, the
timer input the external clock is applied is selected by calling
the LL_TIM_SetTriggerInput() function. This timer input must
be configured by calling the LL_TIM_IC_Config() function.
Macro