STM8L15x Standard Peripherals Drivers
|
Clocks management functions. More...
Functions | |
void | TIM5_ETRClockMode1Config (TIM5_ExtTRGPSC_TypeDef TIM5_ExtTRGPrescaler, TIM5_ExtTRGPolarity_TypeDef TIM5_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM5 External clock Mode1. | |
void | TIM5_ETRClockMode2Config (TIM5_ExtTRGPSC_TypeDef TIM5_ExtTRGPrescaler, TIM5_ExtTRGPolarity_TypeDef TIM5_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM5 External clock Mode2. | |
void | TIM5_InternalClockConfig (void) |
Enables the TIM5 internal Clock. | |
void | TIM5_TIxExternalClockConfig (TIM5_TIxExternalCLK1Source_TypeDef TIM5_TIxExternalCLKSource, TIM5_ICPolarity_TypeDef TIM5_ICPolarity, uint8_t ICFilter) |
Configures the TIM5 Trigger as External Clock. |
Detailed Description
Clocks management functions.
=============================================================================== Clocks management functions ===============================================================================
Function Documentation
void TIM5_ETRClockMode1Config | ( | TIM5_ExtTRGPSC_TypeDef | TIM5_ExtTRGPrescaler, |
TIM5_ExtTRGPolarity_TypeDef | TIM5_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM5 External clock Mode1.
Definition at line 1701 of file stm8l15x_tim5.c.
References TIM5, TIM5_ETRConfig(), TIM5_SlaveMode_External1, TIM5_TRGSelection_ETRF, TIM_SMCR_SMS, and TIM_SMCR_TS.
void TIM5_ETRClockMode2Config | ( | TIM5_ExtTRGPSC_TypeDef | TIM5_ExtTRGPrescaler, |
TIM5_ExtTRGPolarity_TypeDef | TIM5_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM5 External clock Mode2.
Definition at line 1733 of file stm8l15x_tim5.c.
References TIM5, TIM5_ETRConfig(), and TIM_ETR_ECE.
void TIM5_InternalClockConfig | ( | void | ) |
Enables the TIM5 internal Clock.
Definition at line 1638 of file stm8l15x_tim5.c.
References TIM5, and TIM_SMCR_SMS.
void TIM5_TIxExternalClockConfig | ( | TIM5_TIxExternalCLK1Source_TypeDef | TIM5_TIxExternalCLKSource, |
TIM5_ICPolarity_TypeDef | TIM5_ICPolarity, | ||
uint8_t | ICFilter | ||
) |
Configures the TIM5 Trigger as External Clock.
Definition at line 1659 of file stm8l15x_tim5.c.
References IS_TIM5_IC_FILTER, IS_TIM5_IC_POLARITY, IS_TIM5_TIXCLK_SOURCE, TI1_Config(), TI2_Config(), TIM5, TIM5_ICSelection_DirectTI, TIM5_SelectInputTrigger(), TIM5_SlaveMode_External1, and TIM5_TIxExternalCLK1Source_TI2.