Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Interrupts DMA and flags management functions
[TIM_Private_Functions]
Interrupts, DMA and flags management functions. More...
Functions | |
| void | TIM_ITConfig_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_IT, FunctionalState NewState) |
| Enables or disables the specified TIM interrupts. | |
| void | TIM_GenerateEvent_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_EventSource) |
| Configures the TIMx event to be generate by software. | |
| FlagStatus | TIM_GetFlagStatus_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_FLAG) |
| Checks whether the specified TIM flag is set or not. | |
| void | TIM_ClearFlag_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_FLAG) |
| Clears the TIMx's pending flags. | |
| ITStatus | TIM_GetITStatus_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_IT) |
| Checks whether the TIM interrupt has occurred or not. | |
| void | TIM_ClearITPendingBit_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_IT) |
| Clears the TIMx's interrupt pending bits. | |
| void | TIM_DMAConfig_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength) |
| Configures the TIMx's DMA interface. | |
| void | TIM_DMACmd_mort (TIM_TypeDef_mort *TIMx, uint16_t TIM_DMASource, FunctionalState NewState) |
| Enables or disables the TIMx's DMA Requests. | |
| void | TIM_SelectCCDMA_mort (TIM_TypeDef_mort *TIMx, FunctionalState NewState) |
| Selects the TIMx peripheral Capture Compare DMA source. | |
Detailed Description
Interrupts, DMA and flags management functions.
===============================================================================
##### Interrupts, DMA and flags management functions #####
===============================================================================
Function Documentation
| void TIM_ClearFlag_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_FLAG | ||
| ) |
Clears the TIMx's pending flags.
- Parameters:
-
TIMx,: where x can be 1 to 14 to select the TIM peripheral. TIM_FLAG,: specifies the flag bit to clear. This parameter can be any combination of the following values: - TIM_FLAG_Update_MORT: TIM update Flag
- TIM_FLAG_CC1_MORT: TIM Capture Compare 1 Flag
- TIM_FLAG_CC2_MORT: TIM Capture Compare 2 Flag
- TIM_FLAG_CC3_MORT: TIM Capture Compare 3 Flag
- TIM_FLAG_CC4_MORT: TIM Capture Compare 4 Flag
- TIM_FLAG_COM_MORT: TIM Commutation Flag
- TIM_FLAG_Trigger_MORT: TIM Trigger Flag
- TIM_FLAG_Break_MORT: TIM Break Flag
- TIM_FLAG_CC1OF_MORT: TIM Capture Compare 1 over capture Flag
- TIM_FLAG_CC2OF_MORT: TIM Capture Compare 2 over capture Flag
- TIM_FLAG_CC3OF_MORT: TIM Capture Compare 3 over capture Flag
- TIM_FLAG_CC4OF_MORT: TIM Capture Compare 4 over capture Flag
- Note:
- TIM6_MORT and TIM7_MORT can have only one update flag.
- TIM_FLAG_COM_MORT and TIM_FLAG_Break_MORT are used only with TIM1_MORT and TIM8_MORT.
- Return values:
-
None
Definition at line 2485 of file stm32f4xx_tim_mort.c.
| void TIM_ClearITPendingBit_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_IT | ||
| ) |
Clears the TIMx's interrupt pending bits.
- Parameters:
-
TIMx,: where x can be 1 to 14 to select the TIM peripheral. TIM_IT,: specifies the pending bit to clear. This parameter can be any combination of the following values: - TIM_IT_Update_MORT: TIM1_MORT update Interrupt source
- TIM_IT_CC1_MORT: TIM Capture Compare 1 Interrupt source
- TIM_IT_CC2_MORT: TIM Capture Compare 2 Interrupt source
- TIM_IT_CC3_MORT: TIM Capture Compare 3 Interrupt source
- TIM_IT_CC4_MORT: TIM Capture Compare 4 Interrupt source
- TIM_IT_COM_MORT: TIM Commutation Interrupt source
- TIM_IT_Trigger_MORT: TIM Trigger Interrupt source
- TIM_IT_Break_MORT: TIM Break Interrupt source
- Note:
- TIM6_MORT and TIM7_MORT can generate only an update interrupt.
- TIM_IT_COM_MORT and TIM_IT_Break_MORT are used only with TIM1_MORT and TIM8_MORT.
- Return values:
-
None
Definition at line 2554 of file stm32f4xx_tim_mort.c.
| void TIM_DMACmd_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_DMASource, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the TIMx's DMA Requests.
- Parameters:
-
TIMx,: where x can be 1, 2, 3, 4, 5, 6, 7 or 8 to select the TIM peripheral. TIM_DMASource,: specifies the DMA Request sources. This parameter can be any combination of the following values: - TIM_DMA_Update_MORT: TIM update Interrupt source
- TIM_DMA_CC1_MORT: TIM Capture Compare 1 DMA source
- TIM_DMA_CC2_MORT: TIM Capture Compare 2 DMA source
- TIM_DMA_CC3_MORT: TIM Capture Compare 3 DMA source
- TIM_DMA_CC4_MORT: TIM Capture Compare 4 DMA source
- TIM_DMA_COM_MORT: TIM Commutation DMA source
- TIM_DMA_Trigger_MORT: TIM Trigger DMA source
NewState,: new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 2618 of file stm32f4xx_tim_mort.c.
| void TIM_DMAConfig_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_DMABase, | ||
| uint16_t | TIM_DMABurstLength | ||
| ) |
Configures the TIMx's DMA interface.
- Parameters:
-
TIMx,: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. TIM_DMABase,: DMA Base address. This parameter can be one of the following values: - TIM_DMABase_CR1_MORT
- TIM_DMABase_CR2_MORT
- TIM_DMABase_SMCR_MORT
- TIM_DMABase_DIER_MORT
- TIM1_DMABase_SR
- TIM_DMABase_EGR_MORT
- TIM_DMABase_CCMR1_MORT
- TIM_DMABase_CCMR2_MORT
- TIM_DMABase_CCER_MORT
- TIM_DMABase_CNT_MORT
- TIM_DMABase_PSC_MORT
- TIM_DMABase_ARR
- TIM_DMABase_RCR_MORT
- TIM_DMABase_CCR1_MORT
- TIM_DMABase_CCR2_MORT
- TIM_DMABase_CCR3_MORT
- TIM_DMABase_CCR4_MORT
- TIM_DMABase_BDTR_MORT
- TIM_DMABase_DCR_MORT
TIM_DMABurstLength,: DMA Burst length. This parameter can be one value between: TIM_DMABurstLength_1Transfer_MORT and TIM_DMABurstLength_18Transfers_MORT.
- Return values:
-
None
Definition at line 2591 of file stm32f4xx_tim_mort.c.
| void TIM_GenerateEvent_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_EventSource | ||
| ) |
Configures the TIMx event to be generate by software.
- Parameters:
-
TIMx,: where x can be 1 to 14 to select the TIM peripheral. TIM_EventSource,: specifies the event source. This parameter can be one or more of the following values: - TIM_EventSource_Update_MORT: Timer update Event source
- TIM_EventSource_CC1_MORT: Timer Capture Compare 1 Event source
- TIM_EventSource_CC2_MORT: Timer Capture Compare 2 Event source
- TIM_EventSource_CC3_MORT: Timer Capture Compare 3 Event source
- TIM_EventSource_CC4_MORT: Timer Capture Compare 4 Event source
- TIM_EventSource_COM_MORT: Timer COM event source
- TIM_EventSource_Trigger_MORT: Timer Trigger Event source
- TIM_EventSource_Break_MORT: Timer Break event source
- Note:
- TIM6_MORT and TIM7_MORT can only generate an update event.
- TIM_EventSource_COM_MORT and TIM_EventSource_Break_MORT are used only with TIM1_MORT and TIM8_MORT.
- Return values:
-
None
Definition at line 2410 of file stm32f4xx_tim_mort.c.
| FlagStatus TIM_GetFlagStatus_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_FLAG | ||
| ) |
Checks whether the specified TIM flag is set or not.
- Parameters:
-
TIMx,: where x can be 1 to 14 to select the TIM peripheral. TIM_FLAG,: specifies the flag to check. This parameter can be one of the following values: - TIM_FLAG_Update_MORT: TIM update Flag
- TIM_FLAG_CC1_MORT: TIM Capture Compare 1 Flag
- TIM_FLAG_CC2_MORT: TIM Capture Compare 2 Flag
- TIM_FLAG_CC3_MORT: TIM Capture Compare 3 Flag
- TIM_FLAG_CC4_MORT: TIM Capture Compare 4 Flag
- TIM_FLAG_COM_MORT: TIM Commutation Flag
- TIM_FLAG_Trigger_MORT: TIM Trigger Flag
- TIM_FLAG_Break_MORT: TIM Break Flag
- TIM_FLAG_CC1OF_MORT: TIM Capture Compare 1 over capture Flag
- TIM_FLAG_CC2OF_MORT: TIM Capture Compare 2 over capture Flag
- TIM_FLAG_CC3OF_MORT: TIM Capture Compare 3 over capture Flag
- TIM_FLAG_CC4OF_MORT: TIM Capture Compare 4 over capture Flag
- Note:
- TIM6_MORT and TIM7_MORT can have only one update flag.
- TIM_FLAG_COM_MORT and TIM_FLAG_Break_MORT are used only with TIM1_MORT and TIM8_MORT.
- Return values:
-
The new state of TIM_FLAG (SET or RESET).
Definition at line 2443 of file stm32f4xx_tim_mort.c.
| ITStatus TIM_GetITStatus_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_IT | ||
| ) |
Checks whether the TIM interrupt has occurred or not.
- Parameters:
-
TIMx,: where x can be 1 to 14 to select the TIM peripheral. TIM_IT,: specifies the TIM interrupt source to check. This parameter can be one of the following values: - TIM_IT_Update_MORT: TIM update Interrupt source
- TIM_IT_CC1_MORT: TIM Capture Compare 1 Interrupt source
- TIM_IT_CC2_MORT: TIM Capture Compare 2 Interrupt source
- TIM_IT_CC3_MORT: TIM Capture Compare 3 Interrupt source
- TIM_IT_CC4_MORT: TIM Capture Compare 4 Interrupt source
- TIM_IT_COM_MORT: TIM Commutation Interrupt source
- TIM_IT_Trigger_MORT: TIM Trigger Interrupt source
- TIM_IT_Break_MORT: TIM Break Interrupt source
- Note:
- TIM6_MORT and TIM7_MORT can generate only an update interrupt.
- TIM_IT_COM_MORT and TIM_IT_Break_MORT are used only with TIM1_MORT and TIM8_MORT.
- Return values:
-
The new state of the TIM_IT(SET or RESET).
Definition at line 2513 of file stm32f4xx_tim_mort.c.
| void TIM_ITConfig_mort | ( | TIM_TypeDef_mort * | TIMx, |
| uint16_t | TIM_IT, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified TIM interrupts.
- Parameters:
-
TIMx,: where x can be 1 to 14 to select the TIMx peripheral. TIM_IT,: specifies the TIM interrupts sources to be enabled or disabled. This parameter can be any combination of the following values: - TIM_IT_Update_MORT: TIM update Interrupt source
- TIM_IT_CC1_MORT: TIM Capture Compare 1 Interrupt source
- TIM_IT_CC2_MORT: TIM Capture Compare 2 Interrupt source
- TIM_IT_CC3_MORT: TIM Capture Compare 3 Interrupt source
- TIM_IT_CC4_MORT: TIM Capture Compare 4 Interrupt source
- TIM_IT_COM_MORT: TIM Commutation Interrupt source
- TIM_IT_Trigger_MORT: TIM Trigger Interrupt source
- TIM_IT_Break_MORT: TIM Break Interrupt source
- Note:
- For TIM6_MORT and TIM7_MORT only the parameter TIM_IT_Update_MORT can be used
- For TIM9_MORT and TIM12_MORT only one of the following parameters can be used: TIM_IT_Update_MORT, TIM_IT_CC1_MORT, TIM_IT_CC2_MORT or TIM_IT_Trigger_MORT.
- For TIM10_MORT, TIM11_MORT, TIM13_MORT and TIM14_MORT only one of the following parameters can be used: TIM_IT_Update_MORT or TIM_IT_CC1_MORT
- TIM_IT_COM_MORT and TIM_IT_Break_MORT can be used only with TIM1_MORT and TIM8_MORT
- Parameters:
-
NewState,: new state of the TIM interrupts. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 2372 of file stm32f4xx_tim_mort.c.
| void TIM_SelectCCDMA_mort | ( | TIM_TypeDef_mort * | TIMx, |
| FunctionalState | NewState | ||
| ) |
Selects the TIMx peripheral Capture Compare DMA source.
- Parameters:
-
TIMx,: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. NewState,: new state of the Capture Compare DMA source This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 2644 of file stm32f4xx_tim_mort.c.
Generated on Sat Oct 21 2023 04:38:55 by
1.7.2