STM8L15x Standard Peripherals Drivers
|
Clocks management functions. More...
Functions | |
void | TIM2_ETRClockMode1Config (TIM2_ExtTRGPSC_TypeDef TIM2_ExtTRGPrescaler, TIM2_ExtTRGPolarity_TypeDef TIM2_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM2 External clock Mode1. | |
void | TIM2_ETRClockMode2Config (TIM2_ExtTRGPSC_TypeDef TIM2_ExtTRGPrescaler, TIM2_ExtTRGPolarity_TypeDef TIM2_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM2 External clock Mode2. | |
void | TIM2_InternalClockConfig (void) |
Enables the TIM2 internal Clock. | |
void | TIM2_TIxExternalClockConfig (TIM2_TIxExternalCLK1Source_TypeDef TIM2_TIxExternalCLKSource, TIM2_ICPolarity_TypeDef TIM2_ICPolarity, uint8_t ICFilter) |
Configures the TIM2 Trigger as External Clock. |
Detailed Description
Clocks management functions.
=============================================================================== Clocks management functions ===============================================================================
Function Documentation
void TIM2_ETRClockMode1Config | ( | TIM2_ExtTRGPSC_TypeDef | TIM2_ExtTRGPrescaler, |
TIM2_ExtTRGPolarity_TypeDef | TIM2_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM2 External clock Mode1.
Definition at line 1701 of file stm8l15x_tim2.c.
References TIM2, TIM2_ETRConfig(), TIM2_SlaveMode_External1, TIM2_TRGSelection_ETRF, TIM_SMCR_SMS, and TIM_SMCR_TS.
void TIM2_ETRClockMode2Config | ( | TIM2_ExtTRGPSC_TypeDef | TIM2_ExtTRGPrescaler, |
TIM2_ExtTRGPolarity_TypeDef | TIM2_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM2 External clock Mode2.
Definition at line 1733 of file stm8l15x_tim2.c.
References TIM2, TIM2_ETRConfig(), and TIM_ETR_ECE.
void TIM2_InternalClockConfig | ( | void | ) |
Enables the TIM2 internal Clock.
Definition at line 1638 of file stm8l15x_tim2.c.
References TIM2, and TIM_SMCR_SMS.
void TIM2_TIxExternalClockConfig | ( | TIM2_TIxExternalCLK1Source_TypeDef | TIM2_TIxExternalCLKSource, |
TIM2_ICPolarity_TypeDef | TIM2_ICPolarity, | ||
uint8_t | ICFilter | ||
) |
Configures the TIM2 Trigger as External Clock.
Definition at line 1659 of file stm8l15x_tim2.c.
References IS_TIM2_IC_FILTER, IS_TIM2_IC_POLARITY, IS_TIM2_TIXCLK_SOURCE, TI1_Config(), TI2_Config(), TIM2, TIM2_ICSelection_DirectTI, TIM2_SelectInputTrigger(), TIM2_SlaveMode_External1, and TIM2_TIxExternalCLK1Source_TI2.