STM8L15x Standard Peripherals Drivers
|
Clocks management functions. More...
Functions | |
void | TIM1_ETRClockMode1Config (TIM1_ExtTRGPSC_TypeDef TIM1_ExtTRGPrescaler, TIM1_ExtTRGPolarity_TypeDef TIM1_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM1 External clock Mode1. | |
void | TIM1_ETRClockMode2Config (TIM1_ExtTRGPSC_TypeDef TIM1_ExtTRGPrescaler, TIM1_ExtTRGPolarity_TypeDef TIM1_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM1 External clock Mode2. | |
void | TIM1_InternalClockConfig (void) |
Configures the TIM1 internal Clock. | |
void | TIM1_TIxExternalClockConfig (TIM1_TIxExternalCLK1Source_TypeDef TIM1_TIxExternalCLKSource, TIM1_ICPolarity_TypeDef TIM1_ICPolarity, uint8_t ICFilter) |
Configures the TIM1 Trigger as External Clock. |
Detailed Description
Clocks management functions.
=============================================================================== Clocks management functions ===============================================================================
Function Documentation
void TIM1_ETRClockMode1Config | ( | TIM1_ExtTRGPSC_TypeDef | TIM1_ExtTRGPrescaler, |
TIM1_ExtTRGPolarity_TypeDef | TIM1_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM1 External clock Mode1.
Definition at line 2308 of file stm8l15x_tim1.c.
References IS_TIM1_EXT_POLARITY, IS_TIM1_EXT_PRESCALER, IS_TIM1_EXT_TRG_FILTER, TIM1, TIM1_ETRConfig(), TIM1_SlaveMode_External1, TIM1_SMCR_SMS, TIM1_SMCR_TS, and TIM1_TRGSelection_ETRF.
void TIM1_ETRClockMode2Config | ( | TIM1_ExtTRGPSC_TypeDef | TIM1_ExtTRGPrescaler, |
TIM1_ExtTRGPolarity_TypeDef | TIM1_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM1 External clock Mode2.
Definition at line 2341 of file stm8l15x_tim1.c.
References IS_TIM1_EXT_POLARITY, IS_TIM1_EXT_PRESCALER, TIM1, TIM1_ETR_ECE, and TIM1_ETRConfig().
void TIM1_InternalClockConfig | ( | void | ) |
Configures the TIM1 internal Clock.
Definition at line 2245 of file stm8l15x_tim1.c.
References TIM1, and TIM1_SMCR_SMS.
void TIM1_TIxExternalClockConfig | ( | TIM1_TIxExternalCLK1Source_TypeDef | TIM1_TIxExternalCLKSource, |
TIM1_ICPolarity_TypeDef | TIM1_ICPolarity, | ||
uint8_t | ICFilter | ||
) |
Configures the TIM1 Trigger as External Clock.
Definition at line 2266 of file stm8l15x_tim1.c.
References IS_TIM1_IC_FILTER, IS_TIM1_IC_POLARITY, IS_TIM1_TIXCLK_SOURCE, TI1_Config(), TI2_Config(), TIM1, TIM1_ICSelection_DirectTI, TIM1_SelectInputTrigger(), TIM1_SlaveMode_External1, and TIM1_TIxExternalCLK1Source_TI2.