Clocks management functions.
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...
|
|
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...
|
|
Clocks management functions.
===============================================================================
Clocks management functions
===============================================================================
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, 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: 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
-
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, 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: 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
-
void TIM_InternalClockConfig |
( |
TIM_TypeDef * |
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
-
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, 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: Internal Trigger 0
- TIM_TS_ITR1: Internal Trigger 1
- TIM_TS_ITR2: Internal Trigger 2
- TIM_TS_ITR3: Internal Trigger 3
|
- Return values
-
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, 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: 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
-