|
STM8L15x Standard Peripherals Drivers
|
Synchronization management functions. More...
Functions | |
| void | TIM1_ETRConfig (TIM1_ExtTRGPSC_TypeDef TIM1_ExtTRGPrescaler, TIM1_ExtTRGPolarity_TypeDef TIM1_ExtTRGPolarity, uint8_t ExtTRGFilter) |
| Configures the TIM1 External Trigger. | |
| void | TIM1_SelectInputTrigger (TIM1_TRGSelection_TypeDef TIM1_InputTriggerSource) |
| Selects the TIM1 Input Trigger source. | |
| void | TIM1_SelectMasterSlaveMode (FunctionalState NewState) |
| Sets or Resets the TIM1 Master/Slave Mode. | |
| void | TIM1_SelectOutputTrigger (TIM1_TRGOSource_TypeDef TIM1_TRGOSource) |
| Selects the TIM1 Trigger Output Mode. | |
| void | TIM1_SelectSlaveMode (TIM1_SlaveMode_TypeDef TIM1_SlaveMode) |
| Selects the TIM1 Slave Mode. | |
Detailed Description
Synchronization management functions.
===============================================================================
Synchronization management functions
===============================================================================
===================================================================
TIM1 Driver: how to use it in synchronization Mode
===================================================================
Case of two/several Timers
**************************
1. If TIM1 is used as master to other timers use the following functions:
- TIM1_SelectOutputTrigger()
- TIM1_SelectMasterSlaveMode()
2. If TIM1 is used as slave to other timers use the following functions:
- TIM1_SelectInputTrigger()
- TIM1_SelectSlaveMode()
Case of Timers and external trigger (TRIG pin)
********************************************
1. Configure the External trigger using TIM1_ETRConfig()
2. Configure the Slave Timer using the following functions:
- TIM1_SelectInputTrigger()
- TIM1_SelectSlaveMode()
Function Documentation
| void TIM1_ETRConfig | ( | TIM1_ExtTRGPSC_TypeDef | TIM1_ExtTRGPrescaler, |
| TIM1_ExtTRGPolarity_TypeDef | TIM1_ExtTRGPolarity, | ||
| uint8_t | ExtTRGFilter | ||
| ) |
Configures the TIM1 External Trigger.
Definition at line 2493 of file stm8l15x_tim1.c.
References IS_TIM1_EXT_TRG_FILTER, and TIM1.
Referenced by TIM1_ETRClockMode1Config(), and TIM1_ETRClockMode2Config().
| void TIM1_SelectInputTrigger | ( | TIM1_TRGSelection_TypeDef | TIM1_InputTriggerSource | ) |
Selects the TIM1 Input Trigger source.
Definition at line 2404 of file stm8l15x_tim1.c.
References IS_TIM1_TRIGGER_SELECTION, TIM1, and TIM1_SMCR_TS.
Referenced by TIM1_TIxExternalClockConfig().
| void TIM1_SelectMasterSlaveMode | ( | FunctionalState | NewState | ) |
Sets or Resets the TIM1 Master/Slave Mode.
Definition at line 2461 of file stm8l15x_tim1.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM1, and TIM1_SMCR_MSM.
| void TIM1_SelectOutputTrigger | ( | TIM1_TRGOSource_TypeDef | TIM1_TRGOSource | ) |
Selects the TIM1 Trigger Output Mode.
Definition at line 2427 of file stm8l15x_tim1.c.
References IS_TIM1_TRGO_SOURCE, TIM1, and TIM1_CR2_MMS.
| void TIM1_SelectSlaveMode | ( | TIM1_SlaveMode_TypeDef | TIM1_SlaveMode | ) |
Selects the TIM1 Slave Mode.
Definition at line 2445 of file stm8l15x_tim1.c.
References IS_TIM1_SLAVE_MODE, TIM1, and TIM1_SMCR_SMS.