|
@@ -2,11 +2,11 @@
|
|
******************************************************************************
|
|
******************************************************************************
|
|
* @file stm32f10x_tim.c
|
|
* @file stm32f10x_tim.c
|
|
* @author MCD Application Team
|
|
* @author MCD Application Team
|
|
- * @version V3.4.0
|
|
|
|
- * @date 10/15/2010
|
|
|
|
|
|
+ * @version V3.5.0
|
|
|
|
+ * @date 11-March-2011
|
|
* @brief This file provides all the TIM firmware functions.
|
|
* @brief This file provides all the TIM firmware functions.
|
|
******************************************************************************
|
|
******************************************************************************
|
|
- * @copy
|
|
|
|
|
|
+ * @attention
|
|
*
|
|
*
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
|
@@ -15,8 +15,9 @@
|
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
|
*
|
|
*
|
|
- * <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2>
|
|
|
|
- */
|
|
|
|
|
|
+ * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
|
|
|
+ ******************************************************************************
|
|
|
|
+ */
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32f10x_tim.h"
|
|
#include "stm32f10x_tim.h"
|
|
@@ -215,10 +216,11 @@ void TIM_DeInit(TIM_TypeDef* TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Initializes the TIMx Time Base Unit peripheral according to
|
|
* @brief Initializes the TIMx Time Base Unit peripheral according to
|
|
- * the specified parameters in the TIM_TimeBaseInitStruct.
|
|
|
|
|
|
+ * the specified parameters in the TIM_TimeBaseInitStruct.
|
|
* @param TIMx: where x can be 1 to 17 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 to select the TIM peripheral.
|
|
* @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef
|
|
* @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef
|
|
- * structure that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * structure that contains the configuration information for the
|
|
|
|
+ * specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct)
|
|
void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct)
|
|
@@ -268,10 +270,10 @@ void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseIn
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Initializes the TIMx Channel1 according to the specified
|
|
* @brief Initializes the TIMx Channel1 according to the specified
|
|
- * parameters in the TIM_OCInitStruct.
|
|
|
|
|
|
+ * parameters in the TIM_OCInitStruct.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
- * that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * that contains the configuration information for the specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
@@ -326,7 +328,7 @@ void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
/* Set the Output N State */
|
|
/* Set the Output N State */
|
|
tmpccer |= TIM_OCInitStruct->TIM_OutputNState;
|
|
tmpccer |= TIM_OCInitStruct->TIM_OutputNState;
|
|
|
|
|
|
- /* Reset the Ouput Compare and Output Compare N IDLE State */
|
|
|
|
|
|
+ /* Reset the Output Compare and Output Compare N IDLE State */
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS1));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS1));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS1N));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS1N));
|
|
|
|
|
|
@@ -350,11 +352,11 @@ void TIM_OC1Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Initializes the TIMx Channel2 according to the specified
|
|
* @brief Initializes the TIMx Channel2 according to the specified
|
|
- * parameters in the TIM_OCInitStruct.
|
|
|
|
|
|
+ * parameters in the TIM_OCInitStruct.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select
|
|
- * the TIM peripheral.
|
|
|
|
|
|
+ * the TIM peripheral.
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
- * that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * that contains the configuration information for the specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
@@ -409,7 +411,7 @@ void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
/* Set the Output N State */
|
|
/* Set the Output N State */
|
|
tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 4);
|
|
tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 4);
|
|
|
|
|
|
- /* Reset the Ouput Compare and Output Compare N IDLE State */
|
|
|
|
|
|
+ /* Reset the Output Compare and Output Compare N IDLE State */
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS2));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS2));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS2N));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS2N));
|
|
|
|
|
|
@@ -433,10 +435,10 @@ void TIM_OC2Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Initializes the TIMx Channel3 according to the specified
|
|
* @brief Initializes the TIMx Channel3 according to the specified
|
|
- * parameters in the TIM_OCInitStruct.
|
|
|
|
|
|
+ * parameters in the TIM_OCInitStruct.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
- * that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * that contains the configuration information for the specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
@@ -489,7 +491,7 @@ void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
|
|
|
|
/* Set the Output N State */
|
|
/* Set the Output N State */
|
|
tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 8);
|
|
tmpccer |= (uint16_t)(TIM_OCInitStruct->TIM_OutputNState << 8);
|
|
- /* Reset the Ouput Compare and Output Compare N IDLE State */
|
|
|
|
|
|
+ /* Reset the Output Compare and Output Compare N IDLE State */
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS3));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS3));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS3N));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS3N));
|
|
/* Set the Output Idle state */
|
|
/* Set the Output Idle state */
|
|
@@ -512,10 +514,10 @@ void TIM_OC3Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Initializes the TIMx Channel4 according to the specified
|
|
* @brief Initializes the TIMx Channel4 according to the specified
|
|
- * parameters in the TIM_OCInitStruct.
|
|
|
|
|
|
+ * parameters in the TIM_OCInitStruct.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
* @param TIM_OCInitStruct: pointer to a TIM_OCInitTypeDef structure
|
|
- * that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * that contains the configuration information for the specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
@@ -556,7 +558,7 @@ void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
if((TIMx == TIM1) || (TIMx == TIM8))
|
|
if((TIMx == TIM1) || (TIMx == TIM8))
|
|
{
|
|
{
|
|
assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState));
|
|
assert_param(IS_TIM_OCIDLE_STATE(TIM_OCInitStruct->TIM_OCIdleState));
|
|
- /* Reset the Ouput Compare IDLE State */
|
|
|
|
|
|
+ /* Reset the Output Compare IDLE State */
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS4));
|
|
tmpcr2 &= (uint16_t)(~((uint16_t)TIM_CR2_OIS4));
|
|
/* Set the Output Idle state */
|
|
/* Set the Output Idle state */
|
|
tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 6);
|
|
tmpcr2 |= (uint16_t)(TIM_OCInitStruct->TIM_OCIdleState << 6);
|
|
@@ -576,10 +578,10 @@ void TIM_OC4Init(TIM_TypeDef* TIMx, TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Initializes the TIM peripheral according to the specified
|
|
* @brief Initializes the TIM peripheral according to the specified
|
|
- * parameters in the TIM_ICInitStruct.
|
|
|
|
|
|
+ * parameters in the TIM_ICInitStruct.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure
|
|
* @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure
|
|
- * that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * that contains the configuration information for the specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
@@ -643,10 +645,10 @@ void TIM_ICInit(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Configures the TIM peripheral according to the specified
|
|
* @brief Configures the TIM peripheral according to the specified
|
|
- * parameters in the TIM_ICInitStruct to measure an external PWM signal.
|
|
|
|
|
|
+ * parameters in the TIM_ICInitStruct to measure an external PWM signal.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure
|
|
* @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure
|
|
- * that contains the configuration information for the specified TIM peripheral.
|
|
|
|
|
|
+ * that contains the configuration information for the specified TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
@@ -701,10 +703,10 @@ void TIM_PWMIConfig(TIM_TypeDef* TIMx, TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Configures the: Break feature, dead time, Lock level, the OSSI,
|
|
* @brief Configures the: Break feature, dead time, Lock level, the OSSI,
|
|
- * the OSSR State and the AOE(automatic output enable).
|
|
|
|
|
|
+ * the OSSR State and the AOE(automatic output enable).
|
|
* @param TIMx: where x can be 1 or 8 to select the TIM
|
|
* @param TIMx: where x can be 1 or 8 to select the TIM
|
|
* @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure that
|
|
* @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure that
|
|
- * contains the BDTR Register configuration information for the TIM peripheral.
|
|
|
|
|
|
+ * contains the BDTR Register configuration information for the TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
|
|
void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
|
|
@@ -728,7 +730,7 @@ void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
|
|
/**
|
|
/**
|
|
* @brief Fills each TIM_TimeBaseInitStruct member with its default value.
|
|
* @brief Fills each TIM_TimeBaseInitStruct member with its default value.
|
|
* @param TIM_TimeBaseInitStruct : pointer to a TIM_TimeBaseInitTypeDef
|
|
* @param TIM_TimeBaseInitStruct : pointer to a TIM_TimeBaseInitTypeDef
|
|
- * structure which will be initialized.
|
|
|
|
|
|
+ * structure which will be initialized.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct)
|
|
void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct)
|
|
@@ -744,7 +746,7 @@ void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct)
|
|
/**
|
|
/**
|
|
* @brief Fills each TIM_OCInitStruct member with its default value.
|
|
* @brief Fills each TIM_OCInitStruct member with its default value.
|
|
* @param TIM_OCInitStruct : pointer to a TIM_OCInitTypeDef structure which will
|
|
* @param TIM_OCInitStruct : pointer to a TIM_OCInitTypeDef structure which will
|
|
- * be initialized.
|
|
|
|
|
|
+ * be initialized.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
@@ -762,8 +764,8 @@ void TIM_OCStructInit(TIM_OCInitTypeDef* TIM_OCInitStruct)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Fills each TIM_ICInitStruct member with its default value.
|
|
* @brief Fills each TIM_ICInitStruct member with its default value.
|
|
- * @param TIM_ICInitStruct : pointer to a TIM_ICInitTypeDef structure which will
|
|
|
|
- * be initialized.
|
|
|
|
|
|
+ * @param TIM_ICInitStruct: pointer to a TIM_ICInitTypeDef structure which will
|
|
|
|
+ * be initialized.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
@@ -779,7 +781,7 @@ void TIM_ICStructInit(TIM_ICInitTypeDef* TIM_ICInitStruct)
|
|
/**
|
|
/**
|
|
* @brief Fills each TIM_BDTRInitStruct member with its default value.
|
|
* @brief Fills each TIM_BDTRInitStruct member with its default value.
|
|
* @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure which
|
|
* @param TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure which
|
|
- * will be initialized.
|
|
|
|
|
|
+ * will be initialized.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_BDTRStructInit(TIM_BDTRInitTypeDef* TIM_BDTRInitStruct)
|
|
void TIM_BDTRStructInit(TIM_BDTRInitTypeDef* TIM_BDTRInitStruct)
|
|
@@ -915,21 +917,21 @@ void TIM_GenerateEvent(TIM_TypeDef* TIMx, uint16_t TIM_EventSource)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @brief Configures the TIMx’s DMA interface.
|
|
|
|
|
|
+ * @brief Configures the TIMx's DMA interface.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select
|
|
* the TIM peripheral.
|
|
* the TIM peripheral.
|
|
* @param TIM_DMABase: DMA Base address.
|
|
* @param TIM_DMABase: DMA Base address.
|
|
* This parameter can be one of the following values:
|
|
* This parameter can be one of the following values:
|
|
* @arg TIM_DMABase_CR, TIM_DMABase_CR2, TIM_DMABase_SMCR,
|
|
* @arg TIM_DMABase_CR, TIM_DMABase_CR2, TIM_DMABase_SMCR,
|
|
- * TIM_DMABase_DIER, TIM1_DMABase_SR, TIM_DMABase_EGR,
|
|
|
|
- * TIM_DMABase_CCMR1, TIM_DMABase_CCMR2, TIM_DMABase_CCER,
|
|
|
|
- * TIM_DMABase_CNT, TIM_DMABase_PSC, TIM_DMABase_ARR,
|
|
|
|
- * TIM_DMABase_RCR, TIM_DMABase_CCR1, TIM_DMABase_CCR2,
|
|
|
|
- * TIM_DMABase_CCR3, TIM_DMABase_CCR4, TIM_DMABase_BDTR,
|
|
|
|
- * TIM_DMABase_DCR.
|
|
|
|
|
|
+ * TIM_DMABase_DIER, TIM1_DMABase_SR, TIM_DMABase_EGR,
|
|
|
|
+ * TIM_DMABase_CCMR1, TIM_DMABase_CCMR2, TIM_DMABase_CCER,
|
|
|
|
+ * TIM_DMABase_CNT, TIM_DMABase_PSC, TIM_DMABase_ARR,
|
|
|
|
+ * TIM_DMABase_RCR, TIM_DMABase_CCR1, TIM_DMABase_CCR2,
|
|
|
|
+ * TIM_DMABase_CCR3, TIM_DMABase_CCR4, TIM_DMABase_BDTR,
|
|
|
|
+ * TIM_DMABase_DCR.
|
|
* @param TIM_DMABurstLength: DMA Burst length.
|
|
* @param TIM_DMABurstLength: DMA Burst length.
|
|
* This parameter can be one value between:
|
|
* This parameter can be one value between:
|
|
- * TIM_DMABurstLength_1Byte and TIM_DMABurstLength_18Bytes.
|
|
|
|
|
|
+ * TIM_DMABurstLength_1Transfer and TIM_DMABurstLength_18Transfers.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength)
|
|
void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurstLength)
|
|
@@ -943,7 +945,7 @@ void TIM_DMAConfig(TIM_TypeDef* TIMx, uint16_t TIM_DMABase, uint16_t TIM_DMABurs
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @brief Enables or disables the TIMx’s DMA Requests.
|
|
|
|
|
|
+ * @brief Enables or disables the TIMx's DMA Requests.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 6, 7, 8, 15, 16 or 17
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 6, 7, 8, 15, 16 or 17
|
|
* to select the TIM peripheral.
|
|
* to select the TIM peripheral.
|
|
* @param TIM_DMASource: specifies the DMA Request sources.
|
|
* @param TIM_DMASource: specifies the DMA Request sources.
|
|
@@ -979,9 +981,9 @@ void TIM_DMACmd(TIM_TypeDef* TIMx, uint16_t TIM_DMASource, FunctionalState NewSt
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @brief Configures the TIMx interrnal Clock
|
|
|
|
|
|
+ * @brief Configures the TIMx internal Clock
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15
|
|
- * to select the TIM peripheral.
|
|
|
|
|
|
+ * to select the TIM peripheral.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
void TIM_InternalClockConfig(TIM_TypeDef* TIMx)
|
|
void TIM_InternalClockConfig(TIM_TypeDef* TIMx)
|
|
@@ -1250,11 +1252,11 @@ void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource)
|
|
* @arg TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending
|
|
* @arg TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and TI2FP2 edges depending
|
|
* on the level of the other input.
|
|
* on the level of the other input.
|
|
* @param TIM_IC1Polarity: specifies the IC1 Polarity
|
|
* @param TIM_IC1Polarity: specifies the IC1 Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_ICPolarity_Falling: IC Falling edge.
|
|
* @arg TIM_ICPolarity_Falling: IC Falling edge.
|
|
* @arg TIM_ICPolarity_Rising: IC Rising edge.
|
|
* @arg TIM_ICPolarity_Rising: IC Rising edge.
|
|
* @param TIM_IC2Polarity: specifies the IC2 Polarity
|
|
* @param TIM_IC2Polarity: specifies the IC2 Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_ICPolarity_Falling: IC Falling edge.
|
|
* @arg TIM_ICPolarity_Falling: IC Falling edge.
|
|
* @arg TIM_ICPolarity_Rising: IC Rising edge.
|
|
* @arg TIM_ICPolarity_Rising: IC Rising edge.
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1448,7 +1450,7 @@ void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState)
|
|
/**
|
|
/**
|
|
* @brief Selects the TIMx peripheral Capture Compare DMA source.
|
|
* @brief Selects the TIMx peripheral Capture Compare DMA source.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 15, 16 or 17 to select
|
|
- * the TIM peripheral.
|
|
|
|
|
|
+ * the TIM peripheral.
|
|
* @param NewState: new state of the Capture Compare DMA source
|
|
* @param NewState: new state of the Capture Compare DMA source
|
|
* This parameter can be: ENABLE or DISABLE.
|
|
* This parameter can be: ENABLE or DISABLE.
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1473,7 +1475,7 @@ void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState NewState)
|
|
/**
|
|
/**
|
|
* @brief Sets or Resets the TIM peripheral Capture Compare Preload Control bit.
|
|
* @brief Sets or Resets the TIM peripheral Capture Compare Preload Control bit.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8 or 15
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8 or 15
|
|
- * to select the TIMx peripheral
|
|
|
|
|
|
+ * to select the TIMx peripheral
|
|
* @param NewState: new state of the Capture Compare Preload Control bit
|
|
* @param NewState: new state of the Capture Compare Preload Control bit
|
|
* This parameter can be: ENABLE or DISABLE.
|
|
* This parameter can be: ENABLE or DISABLE.
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1522,7 +1524,7 @@ void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPreload)
|
|
/**
|
|
/**
|
|
* @brief Enables or disables the TIMx peripheral Preload register on CCR2.
|
|
* @brief Enables or disables the TIMx peripheral Preload register on CCR2.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select
|
|
- * the TIM peripheral.
|
|
|
|
|
|
+ * the TIM peripheral.
|
|
* @param TIM_OCPreload: new state of the TIMx peripheral Preload register
|
|
* @param TIM_OCPreload: new state of the TIMx peripheral Preload register
|
|
* This parameter can be one of the following values:
|
|
* This parameter can be one of the following values:
|
|
* @arg TIM_OCPreload_Enable
|
|
* @arg TIM_OCPreload_Enable
|
|
@@ -1620,7 +1622,7 @@ void TIM_OC1FastConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCFast)
|
|
/**
|
|
/**
|
|
* @brief Configures the TIMx Output Compare 2 Fast feature.
|
|
* @brief Configures the TIMx Output Compare 2 Fast feature.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select
|
|
- * the TIM peripheral.
|
|
|
|
|
|
+ * the TIM peripheral.
|
|
* @param TIM_OCFast: new state of the Output Compare Fast Enable Bit.
|
|
* @param TIM_OCFast: new state of the Output Compare Fast Enable Bit.
|
|
* This parameter can be one of the following values:
|
|
* This parameter can be one of the following values:
|
|
* @arg TIM_OCFast_Enable: TIM output compare fast enable
|
|
* @arg TIM_OCFast_Enable: TIM output compare fast enable
|
|
@@ -1795,7 +1797,7 @@ void TIM_ClearOC4Ref(TIM_TypeDef* TIMx, uint16_t TIM_OCClear)
|
|
* @brief Configures the TIMx channel 1 polarity.
|
|
* @brief Configures the TIMx channel 1 polarity.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIM_OCPolarity: specifies the OC1 Polarity
|
|
* @param TIM_OCPolarity: specifies the OC1 Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1818,7 +1820,7 @@ void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
|
|
* @brief Configures the TIMx Channel 1N polarity.
|
|
* @brief Configures the TIMx Channel 1N polarity.
|
|
* @param TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
|
|
* @param TIM_OCNPolarity: specifies the OC1N Polarity
|
|
* @param TIM_OCNPolarity: specifies the OC1N Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCNPolarity_High: Output Compare active high
|
|
* @arg TIM_OCNPolarity_High: Output Compare active high
|
|
* @arg TIM_OCNPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCNPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1842,7 +1844,7 @@ void TIM_OC1NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity)
|
|
* @brief Configures the TIMx channel 2 polarity.
|
|
* @brief Configures the TIMx channel 2 polarity.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIM_OCPolarity: specifies the OC2 Polarity
|
|
* @param TIM_OCPolarity: specifies the OC2 Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1865,7 +1867,7 @@ void TIM_OC2PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
|
|
* @brief Configures the TIMx Channel 2N polarity.
|
|
* @brief Configures the TIMx Channel 2N polarity.
|
|
* @param TIMx: where x can be 1 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 or 8 to select the TIM peripheral.
|
|
* @param TIM_OCNPolarity: specifies the OC2N Polarity
|
|
* @param TIM_OCNPolarity: specifies the OC2N Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCNPolarity_High: Output Compare active high
|
|
* @arg TIM_OCNPolarity_High: Output Compare active high
|
|
* @arg TIM_OCNPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCNPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1889,7 +1891,7 @@ void TIM_OC2NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity)
|
|
* @brief Configures the TIMx channel 3 polarity.
|
|
* @brief Configures the TIMx channel 3 polarity.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIM_OCPolarity: specifies the OC3 Polarity
|
|
* @param TIM_OCPolarity: specifies the OC3 Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1912,7 +1914,7 @@ void TIM_OC3PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
|
|
* @brief Configures the TIMx Channel 3N polarity.
|
|
* @brief Configures the TIMx Channel 3N polarity.
|
|
* @param TIMx: where x can be 1 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 or 8 to select the TIM peripheral.
|
|
* @param TIM_OCNPolarity: specifies the OC3N Polarity
|
|
* @param TIM_OCNPolarity: specifies the OC3N Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCNPolarity_High: Output Compare active high
|
|
* @arg TIM_OCNPolarity_High: Output Compare active high
|
|
* @arg TIM_OCNPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCNPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1937,7 +1939,7 @@ void TIM_OC3NPolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCNPolarity)
|
|
* @brief Configures the TIMx channel 4 polarity.
|
|
* @brief Configures the TIMx channel 4 polarity.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIM_OCPolarity: specifies the OC4 Polarity
|
|
* @param TIM_OCPolarity: specifies the OC4 Polarity
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_High: Output Compare active high
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @arg TIM_OCPolarity_Low: Output Compare active low
|
|
* @retval None
|
|
* @retval None
|
|
@@ -1960,7 +1962,7 @@ void TIM_OC4PolarityConfig(TIM_TypeDef* TIMx, uint16_t TIM_OCPolarity)
|
|
* @brief Enables or disables the TIM Capture Compare Channel x.
|
|
* @brief Enables or disables the TIM Capture Compare Channel x.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIM_Channel: specifies the TIM Channel
|
|
* @param TIM_Channel: specifies the TIM Channel
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_Channel_1: TIM Channel 1
|
|
* @arg TIM_Channel_1: TIM Channel 1
|
|
* @arg TIM_Channel_2: TIM Channel 2
|
|
* @arg TIM_Channel_2: TIM Channel 2
|
|
* @arg TIM_Channel_3: TIM Channel 3
|
|
* @arg TIM_Channel_3: TIM Channel 3
|
|
@@ -1991,7 +1993,7 @@ void TIM_CCxCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCx)
|
|
* @brief Enables or disables the TIM Capture Compare Channel xN.
|
|
* @brief Enables or disables the TIM Capture Compare Channel xN.
|
|
* @param TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIM peripheral.
|
|
* @param TIM_Channel: specifies the TIM Channel
|
|
* @param TIM_Channel: specifies the TIM Channel
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_Channel_1: TIM Channel 1
|
|
* @arg TIM_Channel_1: TIM Channel 1
|
|
* @arg TIM_Channel_2: TIM Channel 2
|
|
* @arg TIM_Channel_2: TIM Channel 2
|
|
* @arg TIM_Channel_3: TIM Channel 3
|
|
* @arg TIM_Channel_3: TIM Channel 3
|
|
@@ -2018,19 +2020,19 @@ void TIM_CCxNCmd(TIM_TypeDef* TIMx, uint16_t TIM_Channel, uint16_t TIM_CCxN)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @brief Selects the TIM Ouput Compare Mode.
|
|
|
|
- * @note This function disables the selected channel before changing the Ouput
|
|
|
|
|
|
+ * @brief Selects the TIM Output Compare Mode.
|
|
|
|
+ * @note This function disables the selected channel before changing the Output
|
|
* Compare Mode.
|
|
* Compare Mode.
|
|
* User has to enable this channel using TIM_CCxCmd and TIM_CCxNCmd functions.
|
|
* User has to enable this channel using TIM_CCxCmd and TIM_CCxNCmd functions.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
|
|
* @param TIM_Channel: specifies the TIM Channel
|
|
* @param TIM_Channel: specifies the TIM Channel
|
|
- * This parmeter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_Channel_1: TIM Channel 1
|
|
* @arg TIM_Channel_1: TIM Channel 1
|
|
* @arg TIM_Channel_2: TIM Channel 2
|
|
* @arg TIM_Channel_2: TIM Channel 2
|
|
* @arg TIM_Channel_3: TIM Channel 3
|
|
* @arg TIM_Channel_3: TIM Channel 3
|
|
* @arg TIM_Channel_4: TIM Channel 4
|
|
* @arg TIM_Channel_4: TIM Channel 4
|
|
* @param TIM_OCMode: specifies the TIM Output Compare Mode.
|
|
* @param TIM_OCMode: specifies the TIM Output Compare Mode.
|
|
- * This paramter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_OCMode_Timing
|
|
* @arg TIM_OCMode_Timing
|
|
* @arg TIM_OCMode_Active
|
|
* @arg TIM_OCMode_Active
|
|
* @arg TIM_OCMode_Toggle
|
|
* @arg TIM_OCMode_Toggle
|
|
@@ -2133,7 +2135,7 @@ void TIM_UpdateRequestConfig(TIM_TypeDef* TIMx, uint16_t TIM_UpdateSource)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @brief Enables or disables the TIMx’s Hall sensor interface.
|
|
|
|
|
|
+ * @brief Enables or disables the TIMx's Hall sensor interface.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
|
|
* @param NewState: new state of the TIMx Hall sensor interface.
|
|
* @param NewState: new state of the TIMx Hall sensor interface.
|
|
* This parameter can be: ENABLE or DISABLE.
|
|
* This parameter can be: ENABLE or DISABLE.
|
|
@@ -2157,7 +2159,7 @@ void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState NewState)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @brief Selects the TIMx’s One Pulse Mode.
|
|
|
|
|
|
+ * @brief Selects the TIMx's One Pulse Mode.
|
|
* @param TIMx: where x can be 1 to 17 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1 to 17 to select the TIM peripheral.
|
|
* @param TIM_OPMode: specifies the OPM Mode to be used.
|
|
* @param TIM_OPMode: specifies the OPM Mode to be used.
|
|
* This parameter can be one of the following values:
|
|
* This parameter can be one of the following values:
|
|
@@ -2212,7 +2214,7 @@ void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource)
|
|
* @brief Selects the TIMx Slave Mode.
|
|
* @brief Selects the TIMx Slave Mode.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIM_SlaveMode: specifies the Timer Slave Mode.
|
|
* @param TIM_SlaveMode: specifies the Timer Slave Mode.
|
|
- * This paramter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_SlaveMode_Reset: Rising edge of the selected trigger signal (TRGI) re-initializes
|
|
* @arg TIM_SlaveMode_Reset: Rising edge of the selected trigger signal (TRGI) re-initializes
|
|
* the counter and triggers an update of the registers.
|
|
* the counter and triggers an update of the registers.
|
|
* @arg TIM_SlaveMode_Gated: The counter clock is enabled when the trigger signal (TRGI) is high.
|
|
* @arg TIM_SlaveMode_Gated: The counter clock is enabled when the trigger signal (TRGI) is high.
|
|
@@ -2235,7 +2237,7 @@ void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode)
|
|
* @brief Sets or Resets the TIMx Master/Slave Mode.
|
|
* @brief Sets or Resets the TIMx Master/Slave Mode.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIMx: where x can be 1, 2, 3, 4, 5, 8, 9, 12 or 15 to select the TIM peripheral.
|
|
* @param TIM_MasterSlaveMode: specifies the Timer Master Slave Mode.
|
|
* @param TIM_MasterSlaveMode: specifies the Timer Master Slave Mode.
|
|
- * This paramter can be one of the following values:
|
|
|
|
|
|
+ * This parameter can be one of the following values:
|
|
* @arg TIM_MasterSlaveMode_Enable: synchronization between the current timer
|
|
* @arg TIM_MasterSlaveMode_Enable: synchronization between the current timer
|
|
* and its slaves (through TRGO).
|
|
* and its slaves (through TRGO).
|
|
* @arg TIM_MasterSlaveMode_Disable: No action
|
|
* @arg TIM_MasterSlaveMode_Disable: No action
|
|
@@ -2885,4 +2887,4 @@ static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_
|
|
* @}
|
|
* @}
|
|
*/
|
|
*/
|
|
|
|
|
|
-/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
|
|
|
|
|
|
+/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
|