STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Timer input remapping:

Functions

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

Detailed Description

Function Documentation

◆ LL_TIM_SetRemap()

__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. @rmtoll 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

  • LL_TIM_TIM2_ITR1_RMP_TIM8_TRGO
  • LL_TIM_TIM2_ITR1_RMP_OTG_FS_SOF
  • LL_TIM_TIM2_ITR1_RMP_OTG_HS_SOF

TIM5: one of the following values

  • LL_TIM_TIM5_TI4_RMP_GPIO
  • LL_TIM_TIM5_TI4_RMP_LSI
  • LL_TIM_TIM5_TI4_RMP_LSE
  • LL_TIM_TIM5_TI4_RMP_RTC
  • LL_TIM_TIM5_ITR1_RMP_TIM3_TRGO (*)
  • LL_TIM_TIM5_ITR1_RMP_LPTIM (*)

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

  • LL_TIM_TIM11_TI1_RMP_GPIO
  • LL_TIM_TIM11_TI1_RMP_GPIO1 (*)
  • LL_TIM_TIM11_TI1_RMP_HSE_RTC
  • LL_TIM_TIM11_TI1_RMP_GPIO2
  • LL_TIM_TIM11_TI1_RMP_SPDIFRX (*)

(*) Value not defined in all devices.

Return values
None

Definition at line 3152 of file stm32f4xx_ll_tim.h.