STM32F479xx HAL User Manual
Functions
Timer input remapping
TIM Exported Functions

Functions

__STATIC_INLINE void LL_TIM_SetRemap (TIM_TypeDef *TIMx, uint32_t Remap)
 Remap TIM inputs (input channel, internal/external triggers).

Function Documentation

__STATIC_INLINE void LL_TIM_SetRemap ( TIM_TypeDef *  TIMx,
uint32_t  Remap 
)

Remap TIM inputs (input channel, internal/external triggers).

Note:
Macro IS_TIM_REMAP_INSTANCE(TIMx) can be used to check whether or not a some timer inputs can be remapped.
Reference Manual to LL API cross reference:
TIM1_OR ITR2_RMP LL_TIM_SetRemap
TIM2_OR ITR1_RMP LL_TIM_SetRemap
TIM5_OR ITR1_RMP LL_TIM_SetRemap
TIM5_OR TI4_RMP LL_TIM_SetRemap
TIM9_OR ITR1_RMP LL_TIM_SetRemap
TIM11_OR TI1_RMP LL_TIM_SetRemap
LPTIM1_OR OR LL_TIM_SetRemap
Parameters:
TIMxTimer instance
RemapRemap param depends on the TIMx. Description available only in CHM version of the User Manual (not in .pdf). Otherwise see Reference Manual description of OR registers.

Below description summarizes "Timer Instance" and "Remap" param combinations:

TIM1: one of the following values

ITR2_RMP can be one of the following values

  • LL_TIM_TIM1_ITR2_RMP_TIM3_TRGO (*)
  • LL_TIM_TIM1_ITR2_RMP_LPTIM (*)

TIM2: one of the following values

ITR1_RMP can be one of the following values

TIM5: one of the following values

TIM9: one of the following values

ITR1_RMP can be one of the following values

  • LL_TIM_TIM9_ITR1_RMP_TIM3_TRGO (*)
  • LL_TIM_TIM9_ITR1_RMP_LPTIM (*)

TIM11: one of the following values

(*) Value not defined in all devices.

Return values:
None

Definition at line 3150 of file stm32f4xx_ll_tim.h.

References TIMx_OR_RMP_MASK, and TIMx_OR_RMP_SHIFT.