|
@@ -121,17 +121,7 @@ static const uint8_t SHIFT_TAB_OISx[] =
|
|
#define TIM_POSITION_BRK_SOURCE (POSITION_VAL(Source) & 0x1FUL)
|
|
#define TIM_POSITION_BRK_SOURCE (POSITION_VAL(Source) & 0x1FUL)
|
|
|
|
|
|
/* Generic bit definitions for TIMx_AF1 register */
|
|
/* Generic bit definitions for TIMx_AF1 register */
|
|
-#define TIMx_AF1_BKINE TIM1_AF1_BKINE /*!< BRK BKINE input enable */
|
|
|
|
-#if defined(DFSDM1_Channel0)
|
|
|
|
-#define TIMx_AF1_BKDFBKE TIM1_AF1_BKDFBKE /*!< BRK DFSDM1_BREAK[0] enable */
|
|
|
|
-#endif /* DFSDM1_Channel0 */
|
|
|
|
#define TIMx_AF1_BKINP TIM1_AF1_BKINP /*!< BRK BKIN input polarity */
|
|
#define TIMx_AF1_BKINP TIM1_AF1_BKINP /*!< BRK BKIN input polarity */
|
|
-/* Generic bit definitions for TIMx_AF2 register */
|
|
|
|
-#define TIMx_AF2_BK2INE TIM1_AF2_BK2INE /*!< BRK B2KINE input enable */
|
|
|
|
-#if defined(DFSDM1_Channel0)
|
|
|
|
-#define TIMx_AF2_BK2DFBKE TIM1_AF2_BK2DFBKE /*!< BRK DFSDM_BREAK[0] enable */
|
|
|
|
-#endif /* DFSDM1_Channel0 */
|
|
|
|
-#define TIMx_AF2_BK2INP TIM1_AF2_BK2INP /*!< BRK BK2IN input polarity */
|
|
|
|
#endif /* TIM_BREAK_INPUT_SUPPORT */
|
|
#endif /* TIM_BREAK_INPUT_SUPPORT */
|
|
|
|
|
|
/* Remap mask definitions */
|
|
/* Remap mask definitions */
|
|
@@ -176,14 +166,14 @@ static const uint8_t SHIFT_TAB_OISx[] =
|
|
* @retval none
|
|
* @retval none
|
|
*/
|
|
*/
|
|
#define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \
|
|
#define TIM_GET_CHANNEL_INDEX( __CHANNEL__) \
|
|
-(((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH1N) ? 1U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH2N) ? 3U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH3N) ? 5U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH4) ? 6U :\
|
|
|
|
-((__CHANNEL__) == LL_TIM_CHANNEL_CH5) ? 7U : 8U)
|
|
|
|
|
|
+ (((__CHANNEL__) == LL_TIM_CHANNEL_CH1) ? 0U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH1N) ? 1U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH2) ? 2U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH2N) ? 3U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH3) ? 4U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH3N) ? 5U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH4) ? 6U :\
|
|
|
|
+ ((__CHANNEL__) == LL_TIM_CHANNEL_CH5) ? 7U : 8U)
|
|
|
|
|
|
/** @brief Calculate the deadtime sampling period(in ps).
|
|
/** @brief Calculate the deadtime sampling period(in ps).
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz).
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz).
|
|
@@ -194,9 +184,9 @@ static const uint8_t SHIFT_TAB_OISx[] =
|
|
* @retval none
|
|
* @retval none
|
|
*/
|
|
*/
|
|
#define TIM_CALC_DTS(__TIMCLK__, __CKD__) \
|
|
#define TIM_CALC_DTS(__TIMCLK__, __CKD__) \
|
|
- (((__CKD__) == LL_TIM_CLOCKDIVISION_DIV1) ? ((uint64_t)1000000000000U/(__TIMCLK__)) : \
|
|
|
|
- ((__CKD__) == LL_TIM_CLOCKDIVISION_DIV2) ? ((uint64_t)1000000000000U/((__TIMCLK__) >> 1U)) : \
|
|
|
|
- ((uint64_t)1000000000000U/((__TIMCLK__) >> 2U)))
|
|
|
|
|
|
+ (((__CKD__) == LL_TIM_CLOCKDIVISION_DIV1) ? ((uint64_t)1000000000000U/(__TIMCLK__)) : \
|
|
|
|
+ ((__CKD__) == LL_TIM_CLOCKDIVISION_DIV2) ? ((uint64_t)1000000000000U/((__TIMCLK__) >> 1U)) : \
|
|
|
|
+ ((uint64_t)1000000000000U/((__TIMCLK__) >> 2U)))
|
|
/**
|
|
/**
|
|
* @}
|
|
* @}
|
|
*/
|
|
*/
|
|
@@ -235,13 +225,14 @@ typedef struct
|
|
|
|
|
|
This feature can be modified afterwards using unitary function @ref LL_TIM_SetClockDivision().*/
|
|
This feature can be modified afterwards using unitary function @ref LL_TIM_SetClockDivision().*/
|
|
|
|
|
|
- uint8_t RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter
|
|
|
|
|
|
+ uint32_t RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter
|
|
reaches zero, an update event is generated and counting restarts
|
|
reaches zero, an update event is generated and counting restarts
|
|
from the RCR value (N).
|
|
from the RCR value (N).
|
|
This means in PWM mode that (N+1) corresponds to:
|
|
This means in PWM mode that (N+1) corresponds to:
|
|
- the number of PWM periods in edge-aligned mode
|
|
- the number of PWM periods in edge-aligned mode
|
|
- the number of half PWM period in center-aligned mode
|
|
- the number of half PWM period in center-aligned mode
|
|
- This parameter must be a number between 0x00 and 0xFF.
|
|
|
|
|
|
+ GP timers: this parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.
|
|
|
|
+ Advanced timers: this parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF.
|
|
|
|
|
|
This feature can be modified afterwards using unitary function @ref LL_TIM_SetRepetitionCounter().*/
|
|
This feature can be modified afterwards using unitary function @ref LL_TIM_SetRepetitionCounter().*/
|
|
} LL_TIM_InitTypeDef;
|
|
} LL_TIM_InitTypeDef;
|
|
@@ -1157,7 +1148,7 @@ typedef struct
|
|
* @retval UIF status bit
|
|
* @retval UIF status bit
|
|
*/
|
|
*/
|
|
#define __LL_TIM_GETFLAG_UIFCPY(__CNT__) \
|
|
#define __LL_TIM_GETFLAG_UIFCPY(__CNT__) \
|
|
- (READ_BIT((__CNT__), TIM_CNT_UIFCPY) >> TIM_CNT_UIFCPY_Pos)
|
|
|
|
|
|
+ (READ_BIT((__CNT__), TIM_CNT_UIFCPY) >> TIM_CNT_UIFCPY_Pos)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief HELPER macro calculating DTG[0:7] in the TIMx_BDTR register to achieve the requested dead time duration.
|
|
* @brief HELPER macro calculating DTG[0:7] in the TIMx_BDTR register to achieve the requested dead time duration.
|
|
@@ -1171,11 +1162,11 @@ typedef struct
|
|
* @retval DTG[0:7]
|
|
* @retval DTG[0:7]
|
|
*/
|
|
*/
|
|
#define __LL_TIM_CALC_DEADTIME(__TIMCLK__, __CKD__, __DT__) \
|
|
#define __LL_TIM_CALC_DEADTIME(__TIMCLK__, __CKD__, __DT__) \
|
|
- ( (((uint64_t)((__DT__)*1000U)) < ((DT_DELAY_1+1U) * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(((uint64_t)((__DT__)*1000U) / TIM_CALC_DTS((__TIMCLK__), (__CKD__))) & DT_DELAY_1) : \
|
|
|
|
- (((uint64_t)((__DT__)*1000U)) < ((64U + (DT_DELAY_2+1U)) * 2U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(DT_RANGE_2 | ((uint8_t)((uint8_t)((((uint64_t)((__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), (__CKD__))) >> 1U) - (uint8_t) 64) & DT_DELAY_2)) :\
|
|
|
|
- (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_3+1U)) * 8U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(DT_RANGE_3 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), (__CKD__))) >> 3U) - (uint8_t) 32) & DT_DELAY_3)) :\
|
|
|
|
- (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_4+1U)) * 16U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(DT_RANGE_4 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), (__CKD__))) >> 4U) - (uint8_t) 32) & DT_DELAY_4)) :\
|
|
|
|
- 0U)
|
|
|
|
|
|
+ ( (((uint64_t)((__DT__)*1000U)) < ((DT_DELAY_1+1U) * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(((uint64_t)((__DT__)*1000U) / TIM_CALC_DTS((__TIMCLK__), (__CKD__))) & DT_DELAY_1) : \
|
|
|
|
+ (((uint64_t)((__DT__)*1000U)) < ((64U + (DT_DELAY_2+1U)) * 2U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(DT_RANGE_2 | ((uint8_t)((uint8_t)((((uint64_t)((__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), (__CKD__))) >> 1U) - (uint8_t) 64) & DT_DELAY_2)) :\
|
|
|
|
+ (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_3+1U)) * 8U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(DT_RANGE_3 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), (__CKD__))) >> 3U) - (uint8_t) 32) & DT_DELAY_3)) :\
|
|
|
|
+ (((uint64_t)((__DT__)*1000U)) < ((32U + (DT_DELAY_4+1U)) * 16U * TIM_CALC_DTS((__TIMCLK__), (__CKD__)))) ? (uint8_t)(DT_RANGE_4 | ((uint8_t)((uint8_t)(((((uint64_t)(__DT__)*1000U))/ TIM_CALC_DTS((__TIMCLK__), (__CKD__))) >> 4U) - (uint8_t) 32) & DT_DELAY_4)) :\
|
|
|
|
+ 0U)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief HELPER macro calculating the prescaler value to achieve the required counter clock frequency.
|
|
* @brief HELPER macro calculating the prescaler value to achieve the required counter clock frequency.
|
|
@@ -1185,7 +1176,7 @@ typedef struct
|
|
* @retval Prescaler value (between Min_Data=0 and Max_Data=65535)
|
|
* @retval Prescaler value (between Min_Data=0 and Max_Data=65535)
|
|
*/
|
|
*/
|
|
#define __LL_TIM_CALC_PSC(__TIMCLK__, __CNTCLK__) \
|
|
#define __LL_TIM_CALC_PSC(__TIMCLK__, __CNTCLK__) \
|
|
- (((__TIMCLK__) >= (__CNTCLK__)) ? (uint32_t)(((__TIMCLK__)/(__CNTCLK__)) - 1U) : 0U)
|
|
|
|
|
|
+ (((__TIMCLK__) >= (__CNTCLK__)) ? (uint32_t)(((__TIMCLK__)/(__CNTCLK__)) - 1U) : 0U)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief HELPER macro calculating the auto-reload value to achieve the required output signal frequency.
|
|
* @brief HELPER macro calculating the auto-reload value to achieve the required output signal frequency.
|
|
@@ -1196,7 +1187,7 @@ typedef struct
|
|
* @retval Auto-reload value (between Min_Data=0 and Max_Data=65535)
|
|
* @retval Auto-reload value (between Min_Data=0 and Max_Data=65535)
|
|
*/
|
|
*/
|
|
#define __LL_TIM_CALC_ARR(__TIMCLK__, __PSC__, __FREQ__) \
|
|
#define __LL_TIM_CALC_ARR(__TIMCLK__, __PSC__, __FREQ__) \
|
|
- ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (((__TIMCLK__)/((__FREQ__) * ((__PSC__) + 1U))) - 1U) : 0U)
|
|
|
|
|
|
+ ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (((__TIMCLK__)/((__FREQ__) * ((__PSC__) + 1U))) - 1U) : 0U)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief HELPER macro calculating the compare value required to achieve the required timer output compare active/inactive delay.
|
|
* @brief HELPER macro calculating the compare value required to achieve the required timer output compare active/inactive delay.
|
|
@@ -1207,8 +1198,8 @@ typedef struct
|
|
* @retval Compare value (between Min_Data=0 and Max_Data=65535)
|
|
* @retval Compare value (between Min_Data=0 and Max_Data=65535)
|
|
*/
|
|
*/
|
|
#define __LL_TIM_CALC_DELAY(__TIMCLK__, __PSC__, __DELAY__) \
|
|
#define __LL_TIM_CALC_DELAY(__TIMCLK__, __PSC__, __DELAY__) \
|
|
-((uint32_t)(((uint64_t)(__TIMCLK__) * (uint64_t)(__DELAY__)) \
|
|
|
|
- / ((uint64_t)1000000U * (uint64_t)((__PSC__) + 1U))))
|
|
|
|
|
|
+ ((uint32_t)(((uint64_t)(__TIMCLK__) * (uint64_t)(__DELAY__)) \
|
|
|
|
+ / ((uint64_t)1000000U * (uint64_t)((__PSC__) + 1U))))
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief HELPER macro calculating the auto-reload value to achieve the required pulse duration (when the timer operates in one pulse mode).
|
|
* @brief HELPER macro calculating the auto-reload value to achieve the required pulse duration (when the timer operates in one pulse mode).
|
|
@@ -1220,8 +1211,8 @@ typedef struct
|
|
* @retval Auto-reload value (between Min_Data=0 and Max_Data=65535)
|
|
* @retval Auto-reload value (between Min_Data=0 and Max_Data=65535)
|
|
*/
|
|
*/
|
|
#define __LL_TIM_CALC_PULSE(__TIMCLK__, __PSC__, __DELAY__, __PULSE__) \
|
|
#define __LL_TIM_CALC_PULSE(__TIMCLK__, __PSC__, __DELAY__, __PULSE__) \
|
|
- ((uint32_t)(__LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__PULSE__)) \
|
|
|
|
- + __LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__DELAY__))))
|
|
|
|
|
|
+ ((uint32_t)(__LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__PULSE__)) \
|
|
|
|
+ + __LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__DELAY__))))
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief HELPER macro retrieving the ratio of the input capture prescaler
|
|
* @brief HELPER macro retrieving the ratio of the input capture prescaler
|
|
@@ -1234,7 +1225,7 @@ typedef struct
|
|
* @retval Input capture prescaler ratio (1, 2, 4 or 8)
|
|
* @retval Input capture prescaler ratio (1, 2, 4 or 8)
|
|
*/
|
|
*/
|
|
#define __LL_TIM_GET_ICPSC_RATIO(__ICPSC__) \
|
|
#define __LL_TIM_GET_ICPSC_RATIO(__ICPSC__) \
|
|
- ((uint32_t)(0x01U << (((__ICPSC__) >> 16U) >> TIM_CCMR1_IC1PSC_Pos)))
|
|
|
|
|
|
+ ((uint32_t)(0x01U << (((__ICPSC__) >> 16U) >> TIM_CCMR1_IC1PSC_Pos)))
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1383,7 +1374,7 @@ __STATIC_INLINE uint32_t LL_TIM_GetOnePulseMode(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the timer counter counting mode.
|
|
* @brief Set the timer counter counting mode.
|
|
- * @note Macro @ref IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx) can be used to
|
|
|
|
|
|
+ * @note Macro IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx) can be used to
|
|
* check whether or not the counter mode selection feature is supported
|
|
* check whether or not the counter mode selection feature is supported
|
|
* by a timer instance.
|
|
* by a timer instance.
|
|
* @note Switching from Center Aligned counter mode to Edge counter mode (or reverse)
|
|
* @note Switching from Center Aligned counter mode to Edge counter mode (or reverse)
|
|
@@ -1407,7 +1398,7 @@ __STATIC_INLINE void LL_TIM_SetCounterMode(TIM_TypeDef *TIMx, uint32_t CounterMo
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Get actual counter mode.
|
|
* @brief Get actual counter mode.
|
|
- * @note Macro @ref IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx) can be used to
|
|
|
|
|
|
+ * @note Macro IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx) can be used to
|
|
* check whether or not the counter mode selection feature is supported
|
|
* check whether or not the counter mode selection feature is supported
|
|
* by a timer instance.
|
|
* by a timer instance.
|
|
* @rmtoll CR1 DIR LL_TIM_GetCounterMode\n
|
|
* @rmtoll CR1 DIR LL_TIM_GetCounterMode\n
|
|
@@ -1444,7 +1435,7 @@ __STATIC_INLINE void LL_TIM_EnableARRPreload(TIM_TypeDef *TIMx)
|
|
*/
|
|
*/
|
|
__STATIC_INLINE void LL_TIM_DisableARRPreload(TIM_TypeDef *TIMx)
|
|
__STATIC_INLINE void LL_TIM_DisableARRPreload(TIM_TypeDef *TIMx)
|
|
{
|
|
{
|
|
- CLEAR_BIT(TIMx->CR1,TIM_CR1_ARPE);
|
|
|
|
|
|
+ CLEAR_BIT(TIMx->CR1, TIM_CR1_ARPE);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1460,7 +1451,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledARRPreload(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
|
|
* @brief Set the division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
|
|
- * @note Macro @ref IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check
|
|
* whether or not the clock division feature is supported by the timer
|
|
* whether or not the clock division feature is supported by the timer
|
|
* instance.
|
|
* instance.
|
|
* @rmtoll CR1 CKD LL_TIM_SetClockDivision
|
|
* @rmtoll CR1 CKD LL_TIM_SetClockDivision
|
|
@@ -1478,7 +1469,7 @@ __STATIC_INLINE void LL_TIM_SetClockDivision(TIM_TypeDef *TIMx, uint32_t ClockDi
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Get the actual division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
|
|
* @brief Get the actual division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
|
|
- * @note Macro @ref IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check
|
|
* whether or not the clock division feature is supported by the timer
|
|
* whether or not the clock division feature is supported by the timer
|
|
* instance.
|
|
* instance.
|
|
* @rmtoll CR1 CKD LL_TIM_GetClockDivision
|
|
* @rmtoll CR1 CKD LL_TIM_GetClockDivision
|
|
@@ -1495,7 +1486,7 @@ __STATIC_INLINE uint32_t LL_TIM_GetClockDivision(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the counter value.
|
|
* @brief Set the counter value.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* @rmtoll CNT CNT LL_TIM_SetCounter
|
|
* @rmtoll CNT CNT LL_TIM_SetCounter
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -1509,7 +1500,7 @@ __STATIC_INLINE void LL_TIM_SetCounter(TIM_TypeDef *TIMx, uint32_t Counter)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Get the counter value.
|
|
* @brief Get the counter value.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* @rmtoll CNT CNT LL_TIM_GetCounter
|
|
* @rmtoll CNT CNT LL_TIM_GetCounter
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -1563,7 +1554,7 @@ __STATIC_INLINE uint32_t LL_TIM_GetPrescaler(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Set the auto-reload value.
|
|
* @brief Set the auto-reload value.
|
|
* @note The counter is blocked while the auto-reload value is null.
|
|
* @note The counter is blocked while the auto-reload value is null.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* @note Helper macro @ref __LL_TIM_CALC_ARR can be used to calculate the AutoReload parameter
|
|
* @note Helper macro @ref __LL_TIM_CALC_ARR can be used to calculate the AutoReload parameter
|
|
* @rmtoll ARR ARR LL_TIM_SetAutoReload
|
|
* @rmtoll ARR ARR LL_TIM_SetAutoReload
|
|
@@ -1579,7 +1570,7 @@ __STATIC_INLINE void LL_TIM_SetAutoReload(TIM_TypeDef *TIMx, uint32_t AutoReload
|
|
/**
|
|
/**
|
|
* @brief Get the auto-reload value.
|
|
* @brief Get the auto-reload value.
|
|
* @rmtoll ARR ARR LL_TIM_GetAutoReload
|
|
* @rmtoll ARR ARR LL_TIM_GetAutoReload
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
* @retval Auto-reload value
|
|
* @retval Auto-reload value
|
|
@@ -1592,11 +1583,11 @@ __STATIC_INLINE uint32_t LL_TIM_GetAutoReload(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Set the repetition counter value.
|
|
* @brief Set the repetition counter value.
|
|
* @note For advanced timer instances RepetitionCounter can be up to 65535.
|
|
* @note For advanced timer instances RepetitionCounter can be up to 65535.
|
|
- * @note Macro @ref IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a repetition counter.
|
|
* whether or not a timer instance supports a repetition counter.
|
|
* @rmtoll RCR REP LL_TIM_SetRepetitionCounter
|
|
* @rmtoll RCR REP LL_TIM_SetRepetitionCounter
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
- * @param RepetitionCounter between Min_Data=0 and Max_Data=255
|
|
|
|
|
|
+ * @param RepetitionCounter between Min_Data=0 and Max_Data=255 or 65535 for advanced timer.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
__STATIC_INLINE void LL_TIM_SetRepetitionCounter(TIM_TypeDef *TIMx, uint32_t RepetitionCounter)
|
|
__STATIC_INLINE void LL_TIM_SetRepetitionCounter(TIM_TypeDef *TIMx, uint32_t RepetitionCounter)
|
|
@@ -1606,7 +1597,7 @@ __STATIC_INLINE void LL_TIM_SetRepetitionCounter(TIM_TypeDef *TIMx, uint32_t Rep
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Get the repetition counter value.
|
|
* @brief Get the repetition counter value.
|
|
- * @note Macro @ref IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a repetition counter.
|
|
* whether or not a timer instance supports a repetition counter.
|
|
* @rmtoll RCR REP LL_TIM_GetRepetitionCounter
|
|
* @rmtoll RCR REP LL_TIM_GetRepetitionCounter
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -1640,6 +1631,16 @@ __STATIC_INLINE void LL_TIM_DisableUIFRemap(TIM_TypeDef *TIMx)
|
|
CLEAR_BIT(TIMx->CR1, TIM_CR1_UIFREMAP);
|
|
CLEAR_BIT(TIMx->CR1, TIM_CR1_UIFREMAP);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * @brief Indicate whether update interrupt flag (UIF) copy is set.
|
|
|
|
+ * @param Counter Counter value
|
|
|
|
+ * @retval State of bit (1 or 0).
|
|
|
|
+ */
|
|
|
|
+__STATIC_INLINE uint32_t LL_TIM_IsActiveUIFCPY(uint32_t Counter)
|
|
|
|
+{
|
|
|
|
+ return (((Counter & TIM_CNT_UIFCPY) == (TIM_CNT_UIFCPY)) ? 1UL : 0UL);
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @}
|
|
* @}
|
|
*/
|
|
*/
|
|
@@ -1652,7 +1653,7 @@ __STATIC_INLINE void LL_TIM_DisableUIFRemap(TIM_TypeDef *TIMx)
|
|
* @note CCxE, CCxNE and OCxM bits are preloaded, after having been written,
|
|
* @note CCxE, CCxNE and OCxM bits are preloaded, after having been written,
|
|
* they are updated only when a commutation event (COM) occurs.
|
|
* they are updated only when a commutation event (COM) occurs.
|
|
* @note Only on channels that have a complementary output.
|
|
* @note Only on channels that have a complementary output.
|
|
- * @note Macro @ref IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance is able to generate a commutation event.
|
|
* whether or not a timer instance is able to generate a commutation event.
|
|
* @rmtoll CR2 CCPC LL_TIM_CC_EnablePreload
|
|
* @rmtoll CR2 CCPC LL_TIM_CC_EnablePreload
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -1665,7 +1666,7 @@ __STATIC_INLINE void LL_TIM_CC_EnablePreload(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.
|
|
* @brief Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.
|
|
- * @note Macro @ref IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance is able to generate a commutation event.
|
|
* whether or not a timer instance is able to generate a commutation event.
|
|
* @rmtoll CR2 CCPC LL_TIM_CC_DisablePreload
|
|
* @rmtoll CR2 CCPC LL_TIM_CC_DisablePreload
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -1678,7 +1679,7 @@ __STATIC_INLINE void LL_TIM_CC_DisablePreload(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).
|
|
* @brief Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).
|
|
- * @note Macro @ref IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_COMMUTATION_EVENT_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance is able to generate a commutation event.
|
|
* whether or not a timer instance is able to generate a commutation event.
|
|
* @rmtoll CR2 CCUS LL_TIM_CC_SetUpdate
|
|
* @rmtoll CR2 CCUS LL_TIM_CC_SetUpdate
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -1722,7 +1723,7 @@ __STATIC_INLINE uint32_t LL_TIM_CC_GetDMAReqTrigger(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Set the lock level to freeze the
|
|
* @brief Set the lock level to freeze the
|
|
* configuration of several capture/compare parameters.
|
|
* configuration of several capture/compare parameters.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* the lock mechanism is supported by a timer instance.
|
|
* the lock mechanism is supported by a timer instance.
|
|
* @rmtoll BDTR LOCK LL_TIM_CC_SetLockLevel
|
|
* @rmtoll BDTR LOCK LL_TIM_CC_SetLockLevel
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2024,7 +2025,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetPolarity(TIM_TypeDef *TIMx, uint32_t Chann
|
|
/**
|
|
/**
|
|
* @brief Set the IDLE state of an output channel
|
|
* @brief Set the IDLE state of an output channel
|
|
* @note This function is significant only for the timer instances
|
|
* @note This function is significant only for the timer instances
|
|
- * supporting the break feature. Macro @ref IS_TIM_BREAK_INSTANCE(TIMx)
|
|
|
|
|
|
+ * supporting the break feature. Macro IS_TIM_BREAK_INSTANCE(TIMx)
|
|
* can be used to check whether or not a timer instance provides
|
|
* can be used to check whether or not a timer instance provides
|
|
* a break input.
|
|
* a break input.
|
|
* @rmtoll CR2 OIS1 LL_TIM_OC_SetIdleState\n
|
|
* @rmtoll CR2 OIS1 LL_TIM_OC_SetIdleState\n
|
|
@@ -2248,7 +2249,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledPreload(TIM_TypeDef *TIMx, uint32_t
|
|
/**
|
|
/**
|
|
* @brief Enable clearing the output channel on an external event.
|
|
* @brief Enable clearing the output channel on an external event.
|
|
* @note This function can only be used in Output compare and PWM modes. It does not work in Forced mode.
|
|
* @note This function can only be used in Output compare and PWM modes. It does not work in Forced mode.
|
|
- * @note Macro @ref IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether
|
|
|
|
|
|
+ * @note Macro IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether
|
|
* or not a timer instance can clear the OCxREF signal on an external event.
|
|
* or not a timer instance can clear the OCxREF signal on an external event.
|
|
* @rmtoll CCMR1 OC1CE LL_TIM_OC_EnableClear\n
|
|
* @rmtoll CCMR1 OC1CE LL_TIM_OC_EnableClear\n
|
|
* CCMR1 OC2CE LL_TIM_OC_EnableClear\n
|
|
* CCMR1 OC2CE LL_TIM_OC_EnableClear\n
|
|
@@ -2275,7 +2276,7 @@ __STATIC_INLINE void LL_TIM_OC_EnableClear(TIM_TypeDef *TIMx, uint32_t Channel)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable clearing the output channel on an external event.
|
|
* @brief Disable clearing the output channel on an external event.
|
|
- * @note Macro @ref IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether
|
|
|
|
|
|
+ * @note Macro IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether
|
|
* or not a timer instance can clear the OCxREF signal on an external event.
|
|
* or not a timer instance can clear the OCxREF signal on an external event.
|
|
* @rmtoll CCMR1 OC1CE LL_TIM_OC_DisableClear\n
|
|
* @rmtoll CCMR1 OC1CE LL_TIM_OC_DisableClear\n
|
|
* CCMR1 OC2CE LL_TIM_OC_DisableClear\n
|
|
* CCMR1 OC2CE LL_TIM_OC_DisableClear\n
|
|
@@ -2304,7 +2305,7 @@ __STATIC_INLINE void LL_TIM_OC_DisableClear(TIM_TypeDef *TIMx, uint32_t Channel)
|
|
* @brief Indicates clearing the output channel on an external event is enabled for the output channel.
|
|
* @brief Indicates clearing the output channel on an external event is enabled for the output channel.
|
|
* @note This function enables clearing the output channel on an external event.
|
|
* @note This function enables clearing the output channel on an external event.
|
|
* @note This function can only be used in Output compare and PWM modes. It does not work in Forced mode.
|
|
* @note This function can only be used in Output compare and PWM modes. It does not work in Forced mode.
|
|
- * @note Macro @ref IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether
|
|
|
|
|
|
+ * @note Macro IS_TIM_OCXREF_CLEAR_INSTANCE(TIMx) can be used to check whether
|
|
* or not a timer instance can clear the OCxREF signal on an external event.
|
|
* or not a timer instance can clear the OCxREF signal on an external event.
|
|
* @rmtoll CCMR1 OC1CE LL_TIM_OC_IsEnabledClear\n
|
|
* @rmtoll CCMR1 OC1CE LL_TIM_OC_IsEnabledClear\n
|
|
* CCMR1 OC2CE LL_TIM_OC_IsEnabledClear\n
|
|
* CCMR1 OC2CE LL_TIM_OC_IsEnabledClear\n
|
|
@@ -2332,7 +2333,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_IsEnabledClear(TIM_TypeDef *TIMx, uint32_t Ch
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the dead-time delay (delay inserted between the rising edge of the OCxREF signal and the rising edge of the Ocx and OCxN signals).
|
|
* @brief Set the dead-time delay (delay inserted between the rising edge of the OCxREF signal and the rising edge of the Ocx and OCxN signals).
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* dead-time insertion feature is supported by a timer instance.
|
|
* dead-time insertion feature is supported by a timer instance.
|
|
* @note Helper macro @ref __LL_TIM_CALC_DEADTIME can be used to calculate the DeadTime parameter
|
|
* @note Helper macro @ref __LL_TIM_CALC_DEADTIME can be used to calculate the DeadTime parameter
|
|
* @rmtoll BDTR DTG LL_TIM_OC_SetDeadTime
|
|
* @rmtoll BDTR DTG LL_TIM_OC_SetDeadTime
|
|
@@ -2348,9 +2349,9 @@ __STATIC_INLINE void LL_TIM_OC_SetDeadTime(TIM_TypeDef *TIMx, uint32_t DeadTime)
|
|
/**
|
|
/**
|
|
* @brief Set compare value for output channel 1 (TIMx_CCR1).
|
|
* @brief Set compare value for output channel 1 (TIMx_CCR1).
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 1 is supported by a timer instance.
|
|
* output channel 1 is supported by a timer instance.
|
|
* @rmtoll CCR1 CCR1 LL_TIM_OC_SetCompareCH1
|
|
* @rmtoll CCR1 CCR1 LL_TIM_OC_SetCompareCH1
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2365,9 +2366,9 @@ __STATIC_INLINE void LL_TIM_OC_SetCompareCH1(TIM_TypeDef *TIMx, uint32_t Compare
|
|
/**
|
|
/**
|
|
* @brief Set compare value for output channel 2 (TIMx_CCR2).
|
|
* @brief Set compare value for output channel 2 (TIMx_CCR2).
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 2 is supported by a timer instance.
|
|
* output channel 2 is supported by a timer instance.
|
|
* @rmtoll CCR2 CCR2 LL_TIM_OC_SetCompareCH2
|
|
* @rmtoll CCR2 CCR2 LL_TIM_OC_SetCompareCH2
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2382,9 +2383,9 @@ __STATIC_INLINE void LL_TIM_OC_SetCompareCH2(TIM_TypeDef *TIMx, uint32_t Compare
|
|
/**
|
|
/**
|
|
* @brief Set compare value for output channel 3 (TIMx_CCR3).
|
|
* @brief Set compare value for output channel 3 (TIMx_CCR3).
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel is supported by a timer instance.
|
|
* output channel is supported by a timer instance.
|
|
* @rmtoll CCR3 CCR3 LL_TIM_OC_SetCompareCH3
|
|
* @rmtoll CCR3 CCR3 LL_TIM_OC_SetCompareCH3
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2399,9 +2400,9 @@ __STATIC_INLINE void LL_TIM_OC_SetCompareCH3(TIM_TypeDef *TIMx, uint32_t Compare
|
|
/**
|
|
/**
|
|
* @brief Set compare value for output channel 4 (TIMx_CCR4).
|
|
* @brief Set compare value for output channel 4 (TIMx_CCR4).
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 4 is supported by a timer instance.
|
|
* output channel 4 is supported by a timer instance.
|
|
* @rmtoll CCR4 CCR4 LL_TIM_OC_SetCompareCH4
|
|
* @rmtoll CCR4 CCR4 LL_TIM_OC_SetCompareCH4
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2415,7 +2416,7 @@ __STATIC_INLINE void LL_TIM_OC_SetCompareCH4(TIM_TypeDef *TIMx, uint32_t Compare
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set compare value for output channel 5 (TIMx_CCR5).
|
|
* @brief Set compare value for output channel 5 (TIMx_CCR5).
|
|
- * @note Macro @ref IS_TIM_CC5_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC5_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 5 is supported by a timer instance.
|
|
* output channel 5 is supported by a timer instance.
|
|
* @rmtoll CCR5 CCR5 LL_TIM_OC_SetCompareCH5
|
|
* @rmtoll CCR5 CCR5 LL_TIM_OC_SetCompareCH5
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2429,7 +2430,7 @@ __STATIC_INLINE void LL_TIM_OC_SetCompareCH5(TIM_TypeDef *TIMx, uint32_t Compare
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set compare value for output channel 6 (TIMx_CCR6).
|
|
* @brief Set compare value for output channel 6 (TIMx_CCR6).
|
|
- * @note Macro @ref IS_TIM_CC6_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC6_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 6 is supported by a timer instance.
|
|
* output channel 6 is supported by a timer instance.
|
|
* @rmtoll CCR6 CCR6 LL_TIM_OC_SetCompareCH6
|
|
* @rmtoll CCR6 CCR6 LL_TIM_OC_SetCompareCH6
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2444,9 +2445,9 @@ __STATIC_INLINE void LL_TIM_OC_SetCompareCH6(TIM_TypeDef *TIMx, uint32_t Compare
|
|
/**
|
|
/**
|
|
* @brief Get compare value (TIMx_CCR1) set for output channel 1.
|
|
* @brief Get compare value (TIMx_CCR1) set for output channel 1.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 1 is supported by a timer instance.
|
|
* output channel 1 is supported by a timer instance.
|
|
* @rmtoll CCR1 CCR1 LL_TIM_OC_GetCompareCH1
|
|
* @rmtoll CCR1 CCR1 LL_TIM_OC_GetCompareCH1
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2460,9 +2461,9 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH1(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get compare value (TIMx_CCR2) set for output channel 2.
|
|
* @brief Get compare value (TIMx_CCR2) set for output channel 2.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 2 is supported by a timer instance.
|
|
* output channel 2 is supported by a timer instance.
|
|
* @rmtoll CCR2 CCR2 LL_TIM_OC_GetCompareCH2
|
|
* @rmtoll CCR2 CCR2 LL_TIM_OC_GetCompareCH2
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2476,9 +2477,9 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH2(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get compare value (TIMx_CCR3) set for output channel 3.
|
|
* @brief Get compare value (TIMx_CCR3) set for output channel 3.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 3 is supported by a timer instance.
|
|
* output channel 3 is supported by a timer instance.
|
|
* @rmtoll CCR3 CCR3 LL_TIM_OC_GetCompareCH3
|
|
* @rmtoll CCR3 CCR3 LL_TIM_OC_GetCompareCH3
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2492,9 +2493,9 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH3(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get compare value (TIMx_CCR4) set for output channel 4.
|
|
* @brief Get compare value (TIMx_CCR4) set for output channel 4.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned compare value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 4 is supported by a timer instance.
|
|
* output channel 4 is supported by a timer instance.
|
|
* @rmtoll CCR4 CCR4 LL_TIM_OC_GetCompareCH4
|
|
* @rmtoll CCR4 CCR4 LL_TIM_OC_GetCompareCH4
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2507,7 +2508,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH4(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Get compare value (TIMx_CCR5) set for output channel 5.
|
|
* @brief Get compare value (TIMx_CCR5) set for output channel 5.
|
|
- * @note Macro @ref IS_TIM_CC5_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC5_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 5 is supported by a timer instance.
|
|
* output channel 5 is supported by a timer instance.
|
|
* @rmtoll CCR5 CCR5 LL_TIM_OC_GetCompareCH5
|
|
* @rmtoll CCR5 CCR5 LL_TIM_OC_GetCompareCH5
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2520,7 +2521,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH5(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Get compare value (TIMx_CCR6) set for output channel 6.
|
|
* @brief Get compare value (TIMx_CCR6) set for output channel 6.
|
|
- * @note Macro @ref IS_TIM_CC6_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC6_INSTANCE(TIMx) can be used to check whether or not
|
|
* output channel 6 is supported by a timer instance.
|
|
* output channel 6 is supported by a timer instance.
|
|
* @rmtoll CCR6 CCR6 LL_TIM_OC_GetCompareCH6
|
|
* @rmtoll CCR6 CCR6 LL_TIM_OC_GetCompareCH6
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2533,7 +2534,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH6(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Select on which reference signal the OC5REF is combined to.
|
|
* @brief Select on which reference signal the OC5REF is combined to.
|
|
- * @note Macro @ref IS_TIM_COMBINED3PHASEPWM_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_COMBINED3PHASEPWM_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports the combined 3-phase PWM mode.
|
|
* whether or not a timer instance supports the combined 3-phase PWM mode.
|
|
* @rmtoll CCR5 GC5C3 LL_TIM_SetCH5CombinedChannels\n
|
|
* @rmtoll CCR5 GC5C3 LL_TIM_SetCH5CombinedChannels\n
|
|
* CCR5 GC5C2 LL_TIM_SetCH5CombinedChannels\n
|
|
* CCR5 GC5C2 LL_TIM_SetCH5CombinedChannels\n
|
|
@@ -2837,7 +2838,7 @@ __STATIC_INLINE uint32_t LL_TIM_IC_GetPolarity(TIM_TypeDef *TIMx, uint32_t Chann
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Connect the TIMx_CH1, CH2 and CH3 pins to the TI1 input (XOR combination).
|
|
* @brief Connect the TIMx_CH1, CH2 and CH3 pins to the TI1 input (XOR combination).
|
|
- * @note Macro @ref IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides an XOR input.
|
|
* a timer instance provides an XOR input.
|
|
* @rmtoll CR2 TI1S LL_TIM_IC_EnableXORCombination
|
|
* @rmtoll CR2 TI1S LL_TIM_IC_EnableXORCombination
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2850,7 +2851,7 @@ __STATIC_INLINE void LL_TIM_IC_EnableXORCombination(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disconnect the TIMx_CH1, CH2 and CH3 pins from the TI1 input.
|
|
* @brief Disconnect the TIMx_CH1, CH2 and CH3 pins from the TI1 input.
|
|
- * @note Macro @ref IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides an XOR input.
|
|
* a timer instance provides an XOR input.
|
|
* @rmtoll CR2 TI1S LL_TIM_IC_DisableXORCombination
|
|
* @rmtoll CR2 TI1S LL_TIM_IC_DisableXORCombination
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2863,7 +2864,7 @@ __STATIC_INLINE void LL_TIM_IC_DisableXORCombination(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Indicates whether the TIMx_CH1, CH2 and CH3 pins are connectected to the TI1 input.
|
|
* @brief Indicates whether the TIMx_CH1, CH2 and CH3 pins are connectected to the TI1 input.
|
|
- * @note Macro @ref IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_XOR_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides an XOR input.
|
|
* a timer instance provides an XOR input.
|
|
* @rmtoll CR2 TI1S LL_TIM_IC_IsEnabledXORCombination
|
|
* @rmtoll CR2 TI1S LL_TIM_IC_IsEnabledXORCombination
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2877,9 +2878,9 @@ __STATIC_INLINE uint32_t LL_TIM_IC_IsEnabledXORCombination(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get captured value for input channel 1.
|
|
* @brief Get captured value for input channel 1.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check whether or not
|
|
* input channel 1 is supported by a timer instance.
|
|
* input channel 1 is supported by a timer instance.
|
|
* @rmtoll CCR1 CCR1 LL_TIM_IC_GetCaptureCH1
|
|
* @rmtoll CCR1 CCR1 LL_TIM_IC_GetCaptureCH1
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2893,9 +2894,9 @@ __STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH1(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get captured value for input channel 2.
|
|
* @brief Get captured value for input channel 2.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC2_INSTANCE(TIMx) can be used to check whether or not
|
|
* input channel 2 is supported by a timer instance.
|
|
* input channel 2 is supported by a timer instance.
|
|
* @rmtoll CCR2 CCR2 LL_TIM_IC_GetCaptureCH2
|
|
* @rmtoll CCR2 CCR2 LL_TIM_IC_GetCaptureCH2
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2909,9 +2910,9 @@ __STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH2(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get captured value for input channel 3.
|
|
* @brief Get captured value for input channel 3.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC3_INSTANCE(TIMx) can be used to check whether or not
|
|
* input channel 3 is supported by a timer instance.
|
|
* input channel 3 is supported by a timer instance.
|
|
* @rmtoll CCR3 CCR3 LL_TIM_IC_GetCaptureCH3
|
|
* @rmtoll CCR3 CCR3 LL_TIM_IC_GetCaptureCH3
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2925,9 +2926,9 @@ __STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH3(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Get captured value for input channel 4.
|
|
* @brief Get captured value for input channel 4.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
* @note In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
|
|
- * @note Macro @ref IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
* whether or not a timer instance supports a 32 bits counter.
|
|
- * @note Macro @ref IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check whether or not
|
|
* input channel 4 is supported by a timer instance.
|
|
* input channel 4 is supported by a timer instance.
|
|
* @rmtoll CCR4 CCR4 LL_TIM_IC_GetCaptureCH4
|
|
* @rmtoll CCR4 CCR4 LL_TIM_IC_GetCaptureCH4
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2948,7 +2949,7 @@ __STATIC_INLINE uint32_t LL_TIM_IC_GetCaptureCH4(TIM_TypeDef *TIMx)
|
|
/**
|
|
/**
|
|
* @brief Enable external clock mode 2.
|
|
* @brief Enable external clock mode 2.
|
|
* @note When external clock mode 2 is enabled the counter is clocked by any active edge on the ETRF signal.
|
|
* @note When external clock mode 2 is enabled the counter is clocked by any active edge on the ETRF signal.
|
|
- * @note Macro @ref IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* @rmtoll SMCR ECE LL_TIM_EnableExternalClock
|
|
* @rmtoll SMCR ECE LL_TIM_EnableExternalClock
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2961,7 +2962,7 @@ __STATIC_INLINE void LL_TIM_EnableExternalClock(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable external clock mode 2.
|
|
* @brief Disable external clock mode 2.
|
|
- * @note Macro @ref IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* @rmtoll SMCR ECE LL_TIM_DisableExternalClock
|
|
* @rmtoll SMCR ECE LL_TIM_DisableExternalClock
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2974,7 +2975,7 @@ __STATIC_INLINE void LL_TIM_DisableExternalClock(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Indicate whether external clock mode 2 is enabled.
|
|
* @brief Indicate whether external clock mode 2 is enabled.
|
|
- * @note Macro @ref IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* @rmtoll SMCR ECE LL_TIM_IsEnabledExternalClock
|
|
* @rmtoll SMCR ECE LL_TIM_IsEnabledExternalClock
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -2991,9 +2992,9 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledExternalClock(TIM_TypeDef *TIMx)
|
|
* the external clock is applied is selected by calling the @ref LL_TIM_SetTriggerInput()
|
|
* the external clock is applied is selected by calling the @ref LL_TIM_SetTriggerInput()
|
|
* function. This timer input must be configured by calling
|
|
* function. This timer input must be configured by calling
|
|
* the @ref LL_TIM_IC_Config() function.
|
|
* the @ref LL_TIM_IC_Config() function.
|
|
- * @note Macro @ref IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports external clock mode1.
|
|
* whether or not a timer instance supports external clock mode1.
|
|
- * @note Macro @ref IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* whether or not a timer instance supports external clock mode2.
|
|
* @rmtoll SMCR SMS LL_TIM_SetClockSource\n
|
|
* @rmtoll SMCR SMS LL_TIM_SetClockSource\n
|
|
* SMCR ECE LL_TIM_SetClockSource
|
|
* SMCR ECE LL_TIM_SetClockSource
|
|
@@ -3011,7 +3012,7 @@ __STATIC_INLINE void LL_TIM_SetClockSource(TIM_TypeDef *TIMx, uint32_t ClockSour
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the encoder interface mode.
|
|
* @brief Set the encoder interface mode.
|
|
- * @note Macro @ref IS_TIM_ENCODER_INTERFACE_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_ENCODER_INTERFACE_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance supports the encoder mode.
|
|
* whether or not a timer instance supports the encoder mode.
|
|
* @rmtoll SMCR SMS LL_TIM_SetEncoderMode
|
|
* @rmtoll SMCR SMS LL_TIM_SetEncoderMode
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3035,7 +3036,7 @@ __STATIC_INLINE void LL_TIM_SetEncoderMode(TIM_TypeDef *TIMx, uint32_t EncoderMo
|
|
*/
|
|
*/
|
|
/**
|
|
/**
|
|
* @brief Set the trigger output (TRGO) used for timer synchronization .
|
|
* @brief Set the trigger output (TRGO) used for timer synchronization .
|
|
- * @note Macro @ref IS_TIM_MASTER_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_MASTER_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance can operate as a master timer.
|
|
* whether or not a timer instance can operate as a master timer.
|
|
* @rmtoll CR2 MMS LL_TIM_SetTriggerOutput
|
|
* @rmtoll CR2 MMS LL_TIM_SetTriggerOutput
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3057,7 +3058,7 @@ __STATIC_INLINE void LL_TIM_SetTriggerOutput(TIM_TypeDef *TIMx, uint32_t TimerSy
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the trigger output 2 (TRGO2) used for ADC synchronization .
|
|
* @brief Set the trigger output 2 (TRGO2) used for ADC synchronization .
|
|
- * @note Macro @ref IS_TIM_TRGO2_INSTANCE(TIMx) can be used to check
|
|
|
|
|
|
+ * @note Macro IS_TIM_TRGO2_INSTANCE(TIMx) can be used to check
|
|
* whether or not a timer instance can be used for ADC synchronization.
|
|
* whether or not a timer instance can be used for ADC synchronization.
|
|
* @rmtoll CR2 MMS2 LL_TIM_SetTriggerOutput2
|
|
* @rmtoll CR2 MMS2 LL_TIM_SetTriggerOutput2
|
|
* @param TIMx Timer Instance
|
|
* @param TIMx Timer Instance
|
|
@@ -3087,7 +3088,7 @@ __STATIC_INLINE void LL_TIM_SetTriggerOutput2(TIM_TypeDef *TIMx, uint32_t ADCSyn
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the synchronization mode of a slave timer.
|
|
* @brief Set the synchronization mode of a slave timer.
|
|
- * @note Macro @ref IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance can operate as a slave timer.
|
|
* a timer instance can operate as a slave timer.
|
|
* @rmtoll SMCR SMS LL_TIM_SetSlaveMode
|
|
* @rmtoll SMCR SMS LL_TIM_SetSlaveMode
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3106,7 +3107,7 @@ __STATIC_INLINE void LL_TIM_SetSlaveMode(TIM_TypeDef *TIMx, uint32_t SlaveMode)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the selects the trigger input to be used to synchronize the counter.
|
|
* @brief Set the selects the trigger input to be used to synchronize the counter.
|
|
- * @note Macro @ref IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance can operate as a slave timer.
|
|
* a timer instance can operate as a slave timer.
|
|
* @rmtoll SMCR TS LL_TIM_SetTriggerInput
|
|
* @rmtoll SMCR TS LL_TIM_SetTriggerInput
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3128,7 +3129,7 @@ __STATIC_INLINE void LL_TIM_SetTriggerInput(TIM_TypeDef *TIMx, uint32_t TriggerI
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Enable the Master/Slave mode.
|
|
* @brief Enable the Master/Slave mode.
|
|
- * @note Macro @ref IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance can operate as a slave timer.
|
|
* a timer instance can operate as a slave timer.
|
|
* @rmtoll SMCR MSM LL_TIM_EnableMasterSlaveMode
|
|
* @rmtoll SMCR MSM LL_TIM_EnableMasterSlaveMode
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3141,7 +3142,7 @@ __STATIC_INLINE void LL_TIM_EnableMasterSlaveMode(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable the Master/Slave mode.
|
|
* @brief Disable the Master/Slave mode.
|
|
- * @note Macro @ref IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance can operate as a slave timer.
|
|
* a timer instance can operate as a slave timer.
|
|
* @rmtoll SMCR MSM LL_TIM_DisableMasterSlaveMode
|
|
* @rmtoll SMCR MSM LL_TIM_DisableMasterSlaveMode
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3154,7 +3155,7 @@ __STATIC_INLINE void LL_TIM_DisableMasterSlaveMode(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Indicates whether the Master/Slave mode is enabled.
|
|
* @brief Indicates whether the Master/Slave mode is enabled.
|
|
- * @note Macro @ref IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance can operate as a slave timer.
|
|
* a timer instance can operate as a slave timer.
|
|
* @rmtoll SMCR MSM LL_TIM_IsEnabledMasterSlaveMode
|
|
* @rmtoll SMCR MSM LL_TIM_IsEnabledMasterSlaveMode
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3167,7 +3168,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Configure the external trigger (ETR) input.
|
|
* @brief Configure the external trigger (ETR) input.
|
|
- * @note Macro @ref IS_TIM_ETR_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_ETR_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides an external trigger input.
|
|
* a timer instance provides an external trigger input.
|
|
* @rmtoll SMCR ETP LL_TIM_ConfigETR\n
|
|
* @rmtoll SMCR ETP LL_TIM_ConfigETR\n
|
|
* SMCR ETPS LL_TIM_ConfigETR\n
|
|
* SMCR ETPS LL_TIM_ConfigETR\n
|
|
@@ -3215,7 +3216,7 @@ __STATIC_INLINE void LL_TIM_ConfigETR(TIM_TypeDef *TIMx, uint32_t ETRPolarity, u
|
|
*/
|
|
*/
|
|
/**
|
|
/**
|
|
* @brief Enable the break function.
|
|
* @brief Enable the break function.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR BKE LL_TIM_EnableBRK
|
|
* @rmtoll BDTR BKE LL_TIM_EnableBRK
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3230,7 +3231,7 @@ __STATIC_INLINE void LL_TIM_EnableBRK(TIM_TypeDef *TIMx)
|
|
* @brief Disable the break function.
|
|
* @brief Disable the break function.
|
|
* @rmtoll BDTR BKE LL_TIM_DisableBRK
|
|
* @rmtoll BDTR BKE LL_TIM_DisableBRK
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
@@ -3241,7 +3242,7 @@ __STATIC_INLINE void LL_TIM_DisableBRK(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Configure the break input.
|
|
* @brief Configure the break input.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR BKP LL_TIM_ConfigBRK\n
|
|
* @rmtoll BDTR BKP LL_TIM_ConfigBRK\n
|
|
* BDTR BKF LL_TIM_ConfigBRK
|
|
* BDTR BKF LL_TIM_ConfigBRK
|
|
@@ -3268,14 +3269,15 @@ __STATIC_INLINE void LL_TIM_DisableBRK(TIM_TypeDef *TIMx)
|
|
* @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N8
|
|
* @arg @ref LL_TIM_BREAK_FILTER_FDIV32_N8
|
|
* @retval None
|
|
* @retval None
|
|
*/
|
|
*/
|
|
-__STATIC_INLINE void LL_TIM_ConfigBRK(TIM_TypeDef *TIMx, uint32_t BreakPolarity, uint32_t BreakFilter)
|
|
|
|
|
|
+__STATIC_INLINE void LL_TIM_ConfigBRK(TIM_TypeDef *TIMx, uint32_t BreakPolarity,
|
|
|
|
+ uint32_t BreakFilter)
|
|
{
|
|
{
|
|
MODIFY_REG(TIMx->BDTR, TIM_BDTR_BKP | TIM_BDTR_BKF, BreakPolarity | BreakFilter);
|
|
MODIFY_REG(TIMx->BDTR, TIM_BDTR_BKP | TIM_BDTR_BKF, BreakPolarity | BreakFilter);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Enable the break 2 function.
|
|
* @brief Enable the break 2 function.
|
|
- * @note Macro @ref IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a second break input.
|
|
* a timer instance provides a second break input.
|
|
* @rmtoll BDTR BK2E LL_TIM_EnableBRK2
|
|
* @rmtoll BDTR BK2E LL_TIM_EnableBRK2
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3288,7 +3290,7 @@ __STATIC_INLINE void LL_TIM_EnableBRK2(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable the break 2 function.
|
|
* @brief Disable the break 2 function.
|
|
- * @note Macro @ref IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a second break input.
|
|
* a timer instance provides a second break input.
|
|
* @rmtoll BDTR BK2E LL_TIM_DisableBRK2
|
|
* @rmtoll BDTR BK2E LL_TIM_DisableBRK2
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3301,7 +3303,7 @@ __STATIC_INLINE void LL_TIM_DisableBRK2(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Configure the break 2 input.
|
|
* @brief Configure the break 2 input.
|
|
- * @note Macro @ref IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BKIN2_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a second break input.
|
|
* a timer instance provides a second break input.
|
|
* @rmtoll BDTR BK2P LL_TIM_ConfigBRK2\n
|
|
* @rmtoll BDTR BK2P LL_TIM_ConfigBRK2\n
|
|
* BDTR BK2F LL_TIM_ConfigBRK2
|
|
* BDTR BK2F LL_TIM_ConfigBRK2
|
|
@@ -3335,7 +3337,7 @@ __STATIC_INLINE void LL_TIM_ConfigBRK2(TIM_TypeDef *TIMx, uint32_t Break2Polarit
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Select the outputs off state (enabled v.s. disabled) in Idle and Run modes.
|
|
* @brief Select the outputs off state (enabled v.s. disabled) in Idle and Run modes.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR OSSI LL_TIM_SetOffStates\n
|
|
* @rmtoll BDTR OSSI LL_TIM_SetOffStates\n
|
|
* BDTR OSSR LL_TIM_SetOffStates
|
|
* BDTR OSSR LL_TIM_SetOffStates
|
|
@@ -3355,7 +3357,7 @@ __STATIC_INLINE void LL_TIM_SetOffStates(TIM_TypeDef *TIMx, uint32_t OffStateIdl
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Enable automatic output (MOE can be set by software or automatically when a break input is active).
|
|
* @brief Enable automatic output (MOE can be set by software or automatically when a break input is active).
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR AOE LL_TIM_EnableAutomaticOutput
|
|
* @rmtoll BDTR AOE LL_TIM_EnableAutomaticOutput
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3368,7 +3370,7 @@ __STATIC_INLINE void LL_TIM_EnableAutomaticOutput(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable automatic output (MOE can be set only by software).
|
|
* @brief Disable automatic output (MOE can be set only by software).
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR AOE LL_TIM_DisableAutomaticOutput
|
|
* @rmtoll BDTR AOE LL_TIM_DisableAutomaticOutput
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3381,7 +3383,7 @@ __STATIC_INLINE void LL_TIM_DisableAutomaticOutput(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Indicate whether automatic output is enabled.
|
|
* @brief Indicate whether automatic output is enabled.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR AOE LL_TIM_IsEnabledAutomaticOutput
|
|
* @rmtoll BDTR AOE LL_TIM_IsEnabledAutomaticOutput
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3396,7 +3398,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledAutomaticOutput(TIM_TypeDef *TIMx)
|
|
* @brief Enable the outputs (set the MOE bit in TIMx_BDTR register).
|
|
* @brief Enable the outputs (set the MOE bit in TIMx_BDTR register).
|
|
* @note The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by
|
|
* @note The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by
|
|
* software and is reset in case of break or break2 event
|
|
* software and is reset in case of break or break2 event
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR MOE LL_TIM_EnableAllOutputs
|
|
* @rmtoll BDTR MOE LL_TIM_EnableAllOutputs
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3411,7 +3413,7 @@ __STATIC_INLINE void LL_TIM_EnableAllOutputs(TIM_TypeDef *TIMx)
|
|
* @brief Disable the outputs (reset the MOE bit in TIMx_BDTR register).
|
|
* @brief Disable the outputs (reset the MOE bit in TIMx_BDTR register).
|
|
* @note The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by
|
|
* @note The MOE bit in TIMx_BDTR register allows to enable /disable the outputs by
|
|
* software and is reset in case of break or break2 event.
|
|
* software and is reset in case of break or break2 event.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR MOE LL_TIM_DisableAllOutputs
|
|
* @rmtoll BDTR MOE LL_TIM_DisableAllOutputs
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3424,7 +3426,7 @@ __STATIC_INLINE void LL_TIM_DisableAllOutputs(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Indicates whether outputs are enabled.
|
|
* @brief Indicates whether outputs are enabled.
|
|
- * @note Macro @ref IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
* a timer instance provides a break input.
|
|
* a timer instance provides a break input.
|
|
* @rmtoll BDTR MOE LL_TIM_IsEnabledAllOutputs
|
|
* @rmtoll BDTR MOE LL_TIM_IsEnabledAllOutputs
|
|
* @param TIMx Timer instance
|
|
* @param TIMx Timer instance
|
|
@@ -3438,7 +3440,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledAllOutputs(TIM_TypeDef *TIMx)
|
|
#if defined(TIM_BREAK_INPUT_SUPPORT)
|
|
#if defined(TIM_BREAK_INPUT_SUPPORT)
|
|
/**
|
|
/**
|
|
* @brief Enable the signals connected to the designated timer break input.
|
|
* @brief Enable the signals connected to the designated timer break input.
|
|
- * @note Macro @ref IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether
|
|
* or not a timer instance allows for break input selection.
|
|
* or not a timer instance allows for break input selection.
|
|
* @rmtoll AF1 BKINE LL_TIM_EnableBreakInputSource\n
|
|
* @rmtoll AF1 BKINE LL_TIM_EnableBreakInputSource\n
|
|
* AF1 BKDFBKE LL_TIM_EnableBreakInputSource\n
|
|
* AF1 BKDFBKE LL_TIM_EnableBreakInputSource\n
|
|
@@ -3461,7 +3463,7 @@ __STATIC_INLINE void LL_TIM_EnableBreakInputSource(TIM_TypeDef *TIMx, uint32_t B
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Disable the signals connected to the designated timer break input.
|
|
* @brief Disable the signals connected to the designated timer break input.
|
|
- * @note Macro @ref IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether
|
|
* or not a timer instance allows for break input selection.
|
|
* or not a timer instance allows for break input selection.
|
|
* @rmtoll AF1 BKINE LL_TIM_DisableBreakInputSource\n
|
|
* @rmtoll AF1 BKINE LL_TIM_DisableBreakInputSource\n
|
|
* AF1 BKDFBKE LL_TIM_DisableBreakInputSource\n
|
|
* AF1 BKDFBKE LL_TIM_DisableBreakInputSource\n
|
|
@@ -3484,7 +3486,7 @@ __STATIC_INLINE void LL_TIM_DisableBreakInputSource(TIM_TypeDef *TIMx, uint32_t
|
|
|
|
|
|
/**
|
|
/**
|
|
* @brief Set the polarity of the break signal for the timer break input.
|
|
* @brief Set the polarity of the break signal for the timer break input.
|
|
- * @note Macro @ref IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether
|
|
|
|
|
|
+ * @note Macro IS_TIM_BREAKSOURCE_INSTANCE(TIMx) can be used to check whether
|
|
* or not a timer instance allows for break input selection.
|
|
* or not a timer instance allows for break input selection.
|
|
* @rmtoll AF1 BKINE LL_TIM_SetBreakInputSourcePolarity\n
|
|
* @rmtoll AF1 BKINE LL_TIM_SetBreakInputSourcePolarity\n
|
|
* AF1 BKDFBKE LL_TIM_SetBreakInputSourcePolarity\n
|
|
* AF1 BKDFBKE LL_TIM_SetBreakInputSourcePolarity\n
|
|
@@ -3518,7 +3520,7 @@ __STATIC_INLINE void LL_TIM_SetBreakInputSourcePolarity(TIM_TypeDef *TIMx, uint3
|
|
*/
|
|
*/
|
|
/**
|
|
/**
|
|
* @brief Configures the timer DMA burst feature.
|
|
* @brief Configures the timer DMA burst feature.
|
|
- * @note Macro @ref IS_TIM_DMABURST_INSTANCE(TIMx) can be used to check whether or
|
|
|
|
|
|
+ * @note Macro IS_TIM_DMABURST_INSTANCE(TIMx) can be used to check whether or
|
|
* not a timer instance supports the DMA burst mode.
|
|
* not a timer instance supports the DMA burst mode.
|
|
* @rmtoll DCR DBL LL_TIM_ConfigDMABurst\n
|
|
* @rmtoll DCR DBL LL_TIM_ConfigDMABurst\n
|
|
* DCR DBA LL_TIM_ConfigDMABurst
|
|
* DCR DBA LL_TIM_ConfigDMABurst
|
|
@@ -3584,7 +3586,7 @@ __STATIC_INLINE void LL_TIM_ConfigDMABurst(TIM_TypeDef *TIMx, uint32_t DMABurstB
|
|
*/
|
|
*/
|
|
/**
|
|
/**
|
|
* @brief Remap TIM inputs (input channel, internal/external triggers).
|
|
* @brief Remap TIM inputs (input channel, internal/external triggers).
|
|
- * @note Macro @ref IS_TIM_REMAP_INSTANCE(TIMx) can be used to check whether or not
|
|
|
|
|
|
+ * @note Macro IS_TIM_REMAP_INSTANCE(TIMx) can be used to check whether or not
|
|
* a some timer inputs can be remapped.
|
|
* a some timer inputs can be remapped.
|
|
* @rmtoll TIM2_OR ITR1_RMP LL_TIM_SetRemap\n
|
|
* @rmtoll TIM2_OR ITR1_RMP LL_TIM_SetRemap\n
|
|
* TIM5_OR TI4_RMP LL_TIM_SetRemap\n
|
|
* TIM5_OR TI4_RMP LL_TIM_SetRemap\n
|