Functions

Clocks management functions. More...

Collaboration diagram for Clocks management functions:

Functions

void TIM_ETRClockMode1Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the External clock Mode1. More...
 
void TIM_ETRClockMode2Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter)
 Configures the External clock Mode2. More...
 
void TIM_InternalClockConfig (TIM_TypeDef *TIMx)
 Configures the TIMx internal Clock. More...
 
void TIM_ITRxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource)
 Configures the TIMx Internal Trigger as External Clock. More...
 
void TIM_TIxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity, uint16_t ICFilter)
 Configures the TIMx Trigger as External Clock. More...
 

Detailed Description

Clocks management functions.

 ===============================================================================
                  ##### Clocks management functions #####
 ===============================================================================  

Function Documentation

void TIM_ETRClockMode1Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the External clock Mode1.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 2774 of file stm32f4xx_tim.c.

void TIM_ETRClockMode2Config ( TIM_TypeDef TIMx,
uint16_t  TIM_ExtTRGPrescaler,
uint16_t  TIM_ExtTRGPolarity,
uint16_t  ExtTRGFilter 
)

Configures the External clock Mode2.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4 or 8 to select the TIM peripheral.
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ExtTRGPSC_OFF: ETRP Prescaler OFF.
  • TIM_ExtTRGPSC_DIV2: ETRP frequency divided by 2.
  • TIM_ExtTRGPSC_DIV4: ETRP frequency divided by 4.
  • TIM_ExtTRGPSC_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ExtTRGPolarity_Inverted: active low or falling edge active.
  • TIM_ExtTRGPolarity_NonInverted: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 2821 of file stm32f4xx_tim.c.

void TIM_InternalClockConfig ( TIM_TypeDef TIMx)

Configures the TIMx internal Clock.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
Return values
None

Definition at line 2683 of file stm32f4xx_tim.c.

void TIM_ITRxExternalClockConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_InputTriggerSource 
)

Configures the TIMx Internal Trigger as External Clock.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
TIM_InputTriggerSourceTrigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_InputTriggerSourceTrigger source. This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal Trigger 0
  • TIM_TS_ITR1: Internal Trigger 1
  • TIM_TS_ITR2: Internal Trigger 2
  • TIM_TS_ITR3: Internal Trigger 3
Return values
None

Definition at line 2704 of file stm32f4xx_tim.c.

void TIM_TIxExternalClockConfig ( TIM_TypeDef TIMx,
uint16_t  TIM_TIxExternalCLKSource,
uint16_t  TIM_ICPolarity,
uint16_t  ICFilter 
)

Configures the TIMx Trigger as External Clock.

Parameters
TIMxwhere x can be 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13 or 14 to select the TIM peripheral.
TIM_TIxExternalCLKSourceTrigger source. This parameter can be one of the following values:
  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarityspecifies the TIx Polarity. This parameter can be one of the following values:
  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilterspecifies the filter value. This parameter must be a value between 0x0 and 0xF.
Return values
None
Parameters
TIMxwhere x can be 1, 2, 3, 4, 8 or 15 to select the TIM peripheral.
TIM_TIxExternalCLKSourceTrigger source. This parameter can be one of the following values:
  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarityspecifies the TIx Polarity. This parameter can be one of the following values:
  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilterspecifies the filter value. This parameter must be a value between 0x0 and 0xF.
Return values
None

Definition at line 2734 of file stm32f4xx_tim.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:55