Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Clocks management functions
[TIM_Private_Functions]
  Clocks management functions. More...
| Functions | |
| void | TIM_InternalClockConfig (TIM_TypeDef *TIMx) | 
| Configures the TIMx internal Clock. | |
| void | TIM_ITRxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_InputTriggerSource) | 
| Configures the TIMx Internal Trigger as External Clock. | |
| void | TIM_TIxExternalClockConfig (TIM_TypeDef *TIMx, uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity, uint16_t ICFilter) | 
| Configures the TIMx Trigger as External Clock. | |
| void | TIM_ETRClockMode1Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) | 
| Configures the External clock Mode1. | |
| void | TIM_ETRClockMode2Config (TIM_TypeDef *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) | 
| Configures the External clock Mode2. | |
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:
- 
  TIMx,: where x can be 1, 2, 3, 4, 20 or 8 to select the TIM peripheral. TIM_ExtTRGPrescaler,: The 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_ExtTRGPolarity,: The 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.
 ExtTRGFilter,: External Trigger Filter. This parameter must be a value between 0x00 and 0x0F 
- Return values:
- 
  None 
Definition at line 3367 of file stm32f30x_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:
- 
  TIMx,: where x can be 1, 2, 3, 4, 20 or 8 to select the TIM peripheral. TIM_ExtTRGPrescaler,: The 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_ExtTRGPolarity,: The 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.
 ExtTRGFilter,: External Trigger Filter. This parameter must be a value between 0x00 and 0x0F 
- Return values:
- 
  None 
Definition at line 3414 of file stm32f30x_tim.c.
| void TIM_InternalClockConfig | ( | TIM_TypeDef * | TIMx ) | 
Configures the TIMx internal Clock.
- Parameters:
- 
  TIMx,: where x can be 1, 2, 3, 4, 8, 20 or 15 to select the TIM peripheral. 
- Return values:
- 
  None 
Definition at line 3276 of file stm32f30x_tim.c.
| void TIM_ITRxExternalClockConfig | ( | TIM_TypeDef * | TIMx, | 
| uint16_t | TIM_InputTriggerSource | ||
| ) | 
Configures the TIMx Internal Trigger as External Clock.
- Parameters:
- 
  TIMx,: where x can be 1, 2, 3, 4, 8, 20 or 15 to select the TIM peripheral. TIM_InputTriggerSource,: Trigger 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 3297 of file stm32f30x_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:
- 
  TIMx,: where x can be 1, 2, 3, 4, 8, 20 or 15 to select the TIM peripheral. TIM_TIxExternalCLKSource,: Trigger 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_ICPolarity,: specifies the TIx Polarity. This parameter can be one of the following values: - TIM_ICPolarity_Rising
- TIM_ICPolarity_Falling
 ICFilter,: specifies the filter value. This parameter must be a value between 0x0 and 0xF. 
- Return values:
- 
  None 
Definition at line 3327 of file stm32f30x_tim.c.
Generated on Tue Jul 12 2022 17:34:46 by
 1.7.2
 1.7.2