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.
Clocks management functions
[TIM_Private_Functions]
Clocks management functions. More...
Functions | |
| void | TIM_InternalClockConfig_mort (TIM_TypeDef_mort *TIMx) |
| Configures the TIMx internal Clock. | |
| void | TIM_ITRxExternalClockConfig_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_InputTriggerSource) |
| Configures the TIMx Internal Trigger as External Clock. | |
| void | TIM_TIxExternalClockConfig (TIM_TypeDef_mort *TIMx, uint16_t TIM_TIxExternalCLKSource, uint16_t TIM_ICPolarity, uint16_t ICFilter) |
| Configures the TIMx Trigger as External Clock. | |
| void | TIM_ETRClockMode1Config_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter) |
| Configures the External clock Mode1. | |
| void | TIM_ETRClockMode2Config_mort (TIM_TypeDef_mort *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_mort | ( | TIM_TypeDef_mort * | 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, 5 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_MORT: ETRP Prescaler OFF.
- TIM_ExtTRGPSC_DIV2_MORT: ETRP frequency divided by 2.
- TIM_ExtTRGPSC_DIV4_MORT: ETRP frequency divided by 4.
- TIM_ExtTRGPSC_DIV8_MORT: ETRP frequency divided by 8.
TIM_ExtTRGPolarity,: The external Trigger Polarity. This parameter can be one of the following values: - TIM_ExtTRGPolarity_Inverted_MORT: active low or falling edge active.
- TIM_ExtTRGPolarity_NonInverted_MORT: 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 2774 of file stm32f4xx_tim_mort.c.
| void TIM_ETRClockMode2Config_mort | ( | TIM_TypeDef_mort * | 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, 5 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_MORT: ETRP Prescaler OFF.
- TIM_ExtTRGPSC_DIV2_MORT: ETRP frequency divided by 2.
- TIM_ExtTRGPSC_DIV4_MORT: ETRP frequency divided by 4.
- TIM_ExtTRGPSC_DIV8_MORT: ETRP frequency divided by 8.
TIM_ExtTRGPolarity,: The external Trigger Polarity. This parameter can be one of the following values: - TIM_ExtTRGPolarity_Inverted_MORT: active low or falling edge active.
- TIM_ExtTRGPolarity_NonInverted_MORT: 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 2821 of file stm32f4xx_tim_mort.c.
| void TIM_InternalClockConfig_mort | ( | TIM_TypeDef_mort * | TIMx ) |
Configures the TIMx internal Clock.
- Parameters:
-
TIMx,: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral.
- Return values:
-
None
Definition at line 2683 of file stm32f4xx_tim_mort.c.
| void TIM_ITRxExternalClockConfig_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_InputTriggerSource | ||
| ) |
Configures the TIMx Internal Trigger as External Clock.
- Parameters:
-
TIMx,: where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. TIM_InputTriggerSource,: Trigger source. This parameter can be one of the following values: - TIM_TS_ITR0_MORT: Internal Trigger 0
- TIM_TS_ITR1_MORT: Internal Trigger 1
- TIM_TS_ITR2_MORT: Internal Trigger 2
- TIM_TS_ITR3_MORT: Internal Trigger 3
- Return values:
-
None
Definition at line 2704 of file stm32f4xx_tim_mort.c.
| void TIM_TIxExternalClockConfig | ( | TIM_TypeDef_mort * | 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, 5, 8, 9, 10, 11, 12, 13 or 14 to select the TIM peripheral. TIM_TIxExternalCLKSource,: Trigger source. This parameter can be one of the following values: - TIM_TIxExternalCLK1Source_TI1ED_MORT: TI1 Edge Detector
- TIM_TIxExternalCLK1Source_TI1_MORT: Filtered Timer Input 1
- TIM_TIxExternalCLK1Source_TI2_MORT: Filtered Timer Input 2
TIM_ICPolarity,: specifies the TIx Polarity. This parameter can be one of the following values: - TIM_ICPolarity_Rising_MORT
- TIM_ICPolarity_Falling_MORT
ICFilter,: specifies the filter value. This parameter must be a value between 0x0 and 0xF.
- Return values:
-
None
Definition at line 2734 of file stm32f4xx_tim_mort.c.
Generated on Sat Oct 21 2023 04:38:55 by
1.7.2