STM32L486xx 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_OR1 ETR_ADC1_RMP LL_TIM_SetRemap
TIM1_OR1 ETR_ADC3_RMP LL_TIM_SetRemap
TIM1_OR1 TI1_RMP LL_TIM_SetRemap
TIM8_OR1 ETR_ADC2_RMP LL_TIM_SetRemap
TIM8_OR1 ETR_ADC3_RMP LL_TIM_SetRemap
TIM8_OR1 TI1_RMP LL_TIM_SetRemap
TIM2_OR1 ITR1_RMP LL_TIM_SetRemap
TIM2_OR1 TI4_RMP LL_TIM_SetRemap
TIM2_OR1 TI1_RMP LL_TIM_SetRemap
TIM3_OR1 TI1_RMP LL_TIM_SetRemap
TIM15_OR1 TI1_RMP LL_TIM_SetRemap
TIM15_OR1 ENCODER_MODE LL_TIM_SetRemap
TIM16_OR1 TI1_RMP LL_TIM_SetRemap
TIM17_OR1 TI1_RMP 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: any combination of TI1_RMP, ADC3_RMP, ADC1_RMP where

. . ADC1_RMP can be one of the following values

. . ADC3_RMP can be one of the following values

. . TI1_RMP can be one of the following values

TIM2: any combination of ITR1_RMP, ETR1_RMP, TI4_RMP where

ITR1_RMP can be one of the following values

. . ETR1_RMP can be one of the following values

. . TI4_RMP can be one of the following values

TIM3: one of the following values

TIM8: any combination of TI1_RMP, ADC3_RMP, ADC1_RMP where

. . ADC1_RMP can be one of the following values

. . ADC3_RMP can be one of the following values

. . TI1_RMP can be one of the following values

TIM15: any combination of TI1_RMP, ENCODER_MODE where

. . TI1_RMP can be one of the following values

. . ENCODER_MODE can be one of the following values

TIM16: one of the following values

TIM17: one of the following values

Definition at line 3987 of file stm32l4xx_ll_tim.h.

References TIMx_OR1_RMP_MASK, and TIMx_OR1_RMP_SHIFT.