|
|
@@ -6,13 +6,12 @@
|
|
|
******************************************************************************
|
|
|
* @attention
|
|
|
*
|
|
|
- * <h2><center>© Copyright (c) 2019 STMicroelectronics.
|
|
|
- * All rights reserved.</center></h2>
|
|
|
+ * Copyright (c) 2019 STMicroelectronics.
|
|
|
+ * All rights reserved.
|
|
|
*
|
|
|
- * This software component is licensed by ST under BSD 3-Clause license,
|
|
|
- * the "License"; You may not use this file except in compliance with the
|
|
|
- * License. You may obtain a copy of the License at:
|
|
|
- * opensource.org/licenses/BSD-3-Clause
|
|
|
+ * This software is licensed under terms that can be found in the LICENSE file
|
|
|
+ * in the root directory of this software component.
|
|
|
+ * If no LICENSE file comes with this software, it is provided AS-IS.
|
|
|
*
|
|
|
******************************************************************************
|
|
|
*/
|
|
|
@@ -215,24 +214,29 @@ typedef struct
|
|
|
uint16_t Prescaler; /*!< Specifies the prescaler value used to divide the TIM clock.
|
|
|
This parameter can be a number between Min_Data=0x0000 and Max_Data=0xFFFF.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_SetPrescaler().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_SetPrescaler().*/
|
|
|
|
|
|
uint32_t CounterMode; /*!< Specifies the counter mode.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_COUNTERMODE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_SetCounterMode().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_SetCounterMode().*/
|
|
|
|
|
|
uint32_t Autoreload; /*!< Specifies the auto reload value to be loaded into the active
|
|
|
Auto-Reload Register at the next update event.
|
|
|
This parameter must be a number between Min_Data=0x0000 and Max_Data=0xFFFF.
|
|
|
- Some timer instances may support 32 bits counters. In that case this parameter must be a number between 0x0000 and 0xFFFFFFFF.
|
|
|
+ Some timer instances may support 32 bits counters. In that case this parameter must
|
|
|
+ be a number between 0x0000 and 0xFFFFFFFF.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_SetAutoReload().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_SetAutoReload().*/
|
|
|
|
|
|
uint32_t ClockDivision; /*!< Specifies the clock division.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_CLOCKDIVISION.
|
|
|
|
|
|
- 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().*/
|
|
|
|
|
|
uint32_t RepetitionCounter; /*!< Specifies the repetition counter value. Each time the RCR downcounter
|
|
|
reaches zero, an update event is generated and counting restarts
|
|
|
@@ -240,10 +244,13 @@ typedef struct
|
|
|
This means in PWM mode that (N+1) corresponds to:
|
|
|
- the number of PWM periods in edge-aligned mode
|
|
|
- the number of half PWM period in center-aligned mode
|
|
|
- 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.
|
|
|
+ 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;
|
|
|
|
|
|
/**
|
|
|
@@ -254,43 +261,51 @@ typedef struct
|
|
|
uint32_t OCMode; /*!< Specifies the output mode.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCMODE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetMode().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetMode().*/
|
|
|
|
|
|
uint32_t OCState; /*!< Specifies the TIM Output Compare state.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCSTATE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_CC_EnableChannel() or @ref LL_TIM_CC_DisableChannel().*/
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_CC_EnableChannel() or @ref LL_TIM_CC_DisableChannel().*/
|
|
|
|
|
|
uint32_t OCNState; /*!< Specifies the TIM complementary Output Compare state.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCSTATE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_CC_EnableChannel() or @ref LL_TIM_CC_DisableChannel().*/
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_CC_EnableChannel() or @ref LL_TIM_CC_DisableChannel().*/
|
|
|
|
|
|
uint32_t CompareValue; /*!< Specifies the Compare value to be loaded into the Capture Compare Register.
|
|
|
This parameter can be a number between Min_Data=0x0000 and Max_Data=0xFFFF.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function LL_TIM_OC_SetCompareCHx (x=1..6).*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ LL_TIM_OC_SetCompareCHx (x=1..6).*/
|
|
|
|
|
|
uint32_t OCPolarity; /*!< Specifies the output polarity.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCPOLARITY.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetPolarity().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetPolarity().*/
|
|
|
|
|
|
uint32_t OCNPolarity; /*!< Specifies the complementary output polarity.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCPOLARITY.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetPolarity().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetPolarity().*/
|
|
|
|
|
|
|
|
|
uint32_t OCIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCIDLESTATE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetIdleState().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetIdleState().*/
|
|
|
|
|
|
uint32_t OCNIdleState; /*!< Specifies the TIM Output Compare pin state during Idle state.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OCIDLESTATE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetIdleState().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetIdleState().*/
|
|
|
} LL_TIM_OC_InitTypeDef;
|
|
|
|
|
|
/**
|
|
|
@@ -303,22 +318,26 @@ typedef struct
|
|
|
uint32_t ICPolarity; /*!< Specifies the active edge of the input signal.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPolarity().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPolarity().*/
|
|
|
|
|
|
uint32_t ICActiveInput; /*!< Specifies the input.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ACTIVEINPUT.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetActiveInput().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetActiveInput().*/
|
|
|
|
|
|
uint32_t ICPrescaler; /*!< Specifies the Input Capture Prescaler.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ICPSC.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
|
|
|
uint32_t ICFilter; /*!< Specifies the input capture filter.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_FILTER.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetFilter().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetFilter().*/
|
|
|
} LL_TIM_IC_InitTypeDef;
|
|
|
|
|
|
|
|
|
@@ -330,47 +349,56 @@ typedef struct
|
|
|
uint32_t EncoderMode; /*!< Specifies the encoder resolution (x2 or x4).
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ENCODERMODE.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_SetEncoderMode().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_SetEncoderMode().*/
|
|
|
|
|
|
uint32_t IC1Polarity; /*!< Specifies the active edge of TI1 input.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPolarity().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPolarity().*/
|
|
|
|
|
|
uint32_t IC1ActiveInput; /*!< Specifies the TI1 input source
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ACTIVEINPUT.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetActiveInput().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetActiveInput().*/
|
|
|
|
|
|
uint32_t IC1Prescaler; /*!< Specifies the TI1 input prescaler value.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ICPSC.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
|
|
|
uint32_t IC1Filter; /*!< Specifies the TI1 input filter.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_FILTER.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetFilter().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetFilter().*/
|
|
|
|
|
|
uint32_t IC2Polarity; /*!< Specifies the active edge of TI2 input.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPolarity().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPolarity().*/
|
|
|
|
|
|
uint32_t IC2ActiveInput; /*!< Specifies the TI2 input source
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ACTIVEINPUT.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetActiveInput().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetActiveInput().*/
|
|
|
|
|
|
uint32_t IC2Prescaler; /*!< Specifies the TI2 input prescaler value.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ICPSC.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
|
|
|
uint32_t IC2Filter; /*!< Specifies the TI2 input filter.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_FILTER.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetFilter().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetFilter().*/
|
|
|
|
|
|
} LL_TIM_ENCODER_InitTypeDef;
|
|
|
|
|
|
@@ -383,26 +411,31 @@ typedef struct
|
|
|
uint32_t IC1Polarity; /*!< Specifies the active edge of TI1 input.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_IC_POLARITY.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPolarity().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPolarity().*/
|
|
|
|
|
|
uint32_t IC1Prescaler; /*!< Specifies the TI1 input prescaler value.
|
|
|
Prescaler must be set to get a maximum counter period longer than the
|
|
|
time interval between 2 consecutive changes on the Hall inputs.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_ICPSC.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetPrescaler().*/
|
|
|
|
|
|
uint32_t IC1Filter; /*!< Specifies the TI1 input filter.
|
|
|
- This parameter can be a value of @ref TIM_LL_EC_IC_FILTER.
|
|
|
+ This parameter can be a value of
|
|
|
+ @ref TIM_LL_EC_IC_FILTER.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_IC_SetFilter().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_IC_SetFilter().*/
|
|
|
|
|
|
uint32_t CommutationDelay; /*!< Specifies the compare value to be loaded into the Capture Compare Register.
|
|
|
A positive pulse (TRGO event) is generated with a programmable delay every time
|
|
|
a change occurs on the Hall inputs.
|
|
|
This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetCompareCH2().*/
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetCompareCH2().*/
|
|
|
} LL_TIM_HALLSENSOR_InitTypeDef;
|
|
|
|
|
|
/**
|
|
|
@@ -413,97 +446,121 @@ typedef struct
|
|
|
uint32_t OSSRState; /*!< Specifies the Off-State selection used in Run mode.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OSSR
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_SetOffStates()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_SetOffStates()
|
|
|
|
|
|
- @note This bit-field cannot be modified as long as LOCK level 2 has been programmed. */
|
|
|
+ @note This bit-field cannot be modified as long as LOCK level 2 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t OSSIState; /*!< Specifies the Off-State used in Idle state.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_OSSI
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_SetOffStates()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_SetOffStates()
|
|
|
|
|
|
- @note This bit-field cannot be modified as long as LOCK level 2 has been programmed. */
|
|
|
+ @note This bit-field cannot be modified as long as LOCK level 2 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t LockLevel; /*!< Specifies the LOCK level parameters.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_LOCKLEVEL
|
|
|
|
|
|
- @note The LOCK bits can be written only once after the reset. Once the TIMx_BDTR register
|
|
|
- has been written, their content is frozen until the next reset.*/
|
|
|
+ @note The LOCK bits can be written only once after the reset. Once the TIMx_BDTR
|
|
|
+ register has been written, their content is frozen until the next reset.*/
|
|
|
|
|
|
uint8_t DeadTime; /*!< Specifies the delay time between the switching-off and the
|
|
|
switching-on of the outputs.
|
|
|
This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF.
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_OC_SetDeadTime()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_OC_SetDeadTime()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1, 2 or 3 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1, 2 or 3 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint16_t BreakState; /*!< Specifies whether the TIM Break input is enabled or not.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK_ENABLE
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_EnableBRK() or @ref LL_TIM_DisableBRK()
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_EnableBRK() or @ref LL_TIM_DisableBRK()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t BreakPolarity; /*!< Specifies the TIM Break Input pin polarity.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK_POLARITY
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_ConfigBRK()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_ConfigBRK()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t BreakFilter; /*!< Specifies the TIM Break Filter.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK_FILTER
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_ConfigBRK()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_ConfigBRK()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t BreakAFMode; /*!< Specifies the alternate function mode of the break input.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK_AFMODE
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_ConfigBRK()
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_ConfigBRK()
|
|
|
|
|
|
@note Bidirectional break input is only supported by advanced timers instances.
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t Break2State; /*!< Specifies whether the TIM Break2 input is enabled or not.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK2_ENABLE
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_EnableBRK2() or @ref LL_TIM_DisableBRK2()
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_EnableBRK2() or @ref LL_TIM_DisableBRK2()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t Break2Polarity; /*!< Specifies the TIM Break2 Input pin polarity.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK2_POLARITY
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_ConfigBRK2()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_ConfigBRK2()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t Break2Filter; /*!< Specifies the TIM Break2 Filter.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK2_FILTER
|
|
|
|
|
|
- This feature can be modified afterwards using unitary function @ref LL_TIM_ConfigBRK2()
|
|
|
+ This feature can be modified afterwards using unitary function
|
|
|
+ @ref LL_TIM_ConfigBRK2()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t Break2AFMode; /*!< Specifies the alternate function mode of the break2 input.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_BREAK2_AFMODE
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_ConfigBRK2()
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_ConfigBRK2()
|
|
|
|
|
|
@note Bidirectional break input is only supported by advanced timers instances.
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
|
|
|
uint32_t AutomaticOutput; /*!< Specifies whether the TIM Automatic Output feature is enabled or not.
|
|
|
This parameter can be a value of @ref TIM_LL_EC_AUTOMATICOUTPUT_ENABLE
|
|
|
|
|
|
- This feature can be modified afterwards using unitary functions @ref LL_TIM_EnableAutomaticOutput() or @ref LL_TIM_DisableAutomaticOutput()
|
|
|
+ This feature can be modified afterwards using unitary functions
|
|
|
+ @ref LL_TIM_EnableAutomaticOutput() or @ref LL_TIM_DisableAutomaticOutput()
|
|
|
|
|
|
- @note This bit-field can not be modified as long as LOCK level 1 has been programmed. */
|
|
|
+ @note This bit-field can not be modified as long as LOCK level 1 has been
|
|
|
+ programmed. */
|
|
|
} LL_TIM_BDTR_InitTypeDef;
|
|
|
|
|
|
/**
|
|
|
@@ -878,8 +935,8 @@ typedef struct
|
|
|
#define LL_TIM_SLAVEMODE_GATED (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_0) /*!< Gated Mode - The counter clock is enabled when the trigger input (TRGI) is high */
|
|
|
#define LL_TIM_SLAVEMODE_TRIGGER (TIM_SMCR_SMS_2 | TIM_SMCR_SMS_1) /*!< Trigger Mode - The counter starts at a rising edge of the trigger TRGI */
|
|
|
#define LL_TIM_SLAVEMODE_COMBINED_RESETTRIGGER TIM_SMCR_SMS_3 /*!< Combined reset + trigger mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter, generates an update of the registers and starts the counter */
|
|
|
-#define LL_TIM_SLAVEMODE_COMBINED_GATEDRESET (TIM_SMCR_SMS_3 | TIM_SMCR_SMS_0) /*!< Combined gated + reset mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops and is reset) as soon as the trigger becomes low.
|
|
|
- Both start and stop of the counter are controlled. */
|
|
|
+#define LL_TIM_SLAVEMODE_COMBINED_GATEDRESET (TIM_SMCR_SMS_3 | TIM_SMCR_SMS_0) /*!< Combined gated + reset mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops and is reset) as soon as the trigger becomes low.Both startand stop of
|
|
|
+ the counter are controlled. */
|
|
|
/**
|
|
|
* @}
|
|
|
*/
|
|
|
@@ -1815,10 +1872,17 @@ typedef struct
|
|
|
* @retval DTG[0:7]
|
|
|
*/
|
|
|
#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)) :\
|
|
|
+ ( (((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)
|
|
|
|
|
|
/**
|
|
|
@@ -1843,7 +1907,8 @@ typedef struct
|
|
|
((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (((__TIMCLK__)/((__FREQ__) * ((__PSC__) + 1U))) - 1U) : 0U)
|
|
|
|
|
|
/**
|
|
|
- * @brief HELPER macro calculating the auto-reload value, with dithering feature enabled, to achieve the required output signal frequency.
|
|
|
+ * @brief HELPER macro calculating the auto-reload value, with dithering feature enabled, to achieve the required
|
|
|
+ * output signal frequency.
|
|
|
* @note ex: @ref __LL_TIM_CALC_ARR_DITHER (1000000, @ref LL_TIM_GetPrescaler (), 10000);
|
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz)
|
|
|
* @param __PSC__ prescaler
|
|
|
@@ -1851,10 +1916,12 @@ typedef struct
|
|
|
* @retval Auto-reload value (between Min_Data=0 and Max_Data=65535)
|
|
|
*/
|
|
|
#define __LL_TIM_CALC_ARR_DITHER(__TIMCLK__, __PSC__, __FREQ__) \
|
|
|
- ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? (uint32_t)((((uint64_t)(__TIMCLK__) * 16U/((__FREQ__) * ((__PSC__) + 1U))) - 16U)) : 0U)
|
|
|
+ ((((__TIMCLK__)/((__PSC__) + 1U)) >= (__FREQ__)) ? \
|
|
|
+ (uint32_t)((((uint64_t)(__TIMCLK__) * 16U/((__FREQ__) * ((__PSC__) + 1U))) - 16U)) : 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.
|
|
|
* @note ex: @ref __LL_TIM_CALC_DELAY (1000000, @ref LL_TIM_GetPrescaler (), 10);
|
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz)
|
|
|
* @param __PSC__ prescaler
|
|
|
@@ -1866,7 +1933,8 @@ typedef struct
|
|
|
/ ((uint64_t)1000000U * (uint64_t)((__PSC__) + 1U))))
|
|
|
|
|
|
/**
|
|
|
- * @brief HELPER macro calculating the compare value, with dithering feature enabled, to achieve the required timer output compare active/inactive delay.
|
|
|
+ * @brief HELPER macro calculating the compare value, with dithering feature enabled, to achieve the required timer
|
|
|
+ * output compare active/inactive delay.
|
|
|
* @note ex: @ref __LL_TIM_CALC_DELAY_DITHER (1000000, @ref LL_TIM_GetPrescaler (), 10);
|
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz)
|
|
|
* @param __PSC__ prescaler
|
|
|
@@ -1878,7 +1946,8 @@ typedef struct
|
|
|
/ ((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).
|
|
|
* @note ex: @ref __LL_TIM_CALC_PULSE (1000000, @ref LL_TIM_GetPrescaler (), 10, 20);
|
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz)
|
|
|
* @param __PSC__ prescaler
|
|
|
@@ -1891,7 +1960,8 @@ typedef struct
|
|
|
+ __LL_TIM_CALC_DELAY((__TIMCLK__), (__PSC__), (__DELAY__))))
|
|
|
|
|
|
/**
|
|
|
- * @brief HELPER macro calculating the auto-reload value, with dithering feature enabled, to achieve the required pulse duration (when the timer operates in one pulse mode).
|
|
|
+ * @brief HELPER macro calculating the auto-reload value, with dithering feature enabled, to achieve the required
|
|
|
+ * pulse duration (when the timer operates in one pulse mode).
|
|
|
* @note ex: @ref __LL_TIM_CALC_PULSE_DITHER (1000000, @ref LL_TIM_GetPrescaler (), 10, 20);
|
|
|
* @param __TIMCLK__ timer input clock frequency (in Hz)
|
|
|
* @param __PSC__ prescaler
|
|
|
@@ -2148,7 +2218,8 @@ __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 IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check
|
|
|
* whether or not the clock division feature is supported by the timer
|
|
|
* instance.
|
|
|
@@ -2166,7 +2237,8 @@ __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 IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx) can be used to check
|
|
|
* whether or not the clock division feature is supported by the timer
|
|
|
* instance.
|
|
|
@@ -2257,7 +2329,8 @@ __STATIC_INLINE uint32_t LL_TIM_GetPrescaler(TIM_TypeDef *TIMx)
|
|
|
* @note Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be used to check
|
|
|
* 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
|
|
|
- * In case dithering is activated,macro __LL_TIM_CALC_ARR_DITHER can be used instead, to calculate the AutoReload parameter.
|
|
|
+ * In case dithering is activated,macro __LL_TIM_CALC_ARR_DITHER can be used instead, to calculate the AutoReload
|
|
|
+ * parameter.
|
|
|
* @rmtoll ARR ARR LL_TIM_SetAutoReload
|
|
|
* @param TIMx Timer instance
|
|
|
* @param AutoReload between Min_Data=0 and Max_Data=65535
|
|
|
@@ -2312,7 +2385,8 @@ __STATIC_INLINE uint32_t LL_TIM_GetRepetitionCounter(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Force a continuous copy of the update interrupt flag (UIF) into the timer counter register (bit 31).
|
|
|
- * @note This allows both the counter value and a potential roll-over condition signalled by the UIFCPY flag to be read in an atomic way.
|
|
|
+ * @note This allows both the counter value and a potential roll-over condition signalled by the UIFCPY flag to be read
|
|
|
+ * in an atomic way.
|
|
|
* @rmtoll CR1 UIFREMAP LL_TIM_EnableUIFRemap
|
|
|
* @param TIMx Timer instance
|
|
|
* @retval None
|
|
|
@@ -2345,7 +2419,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsActiveUIFCPY(uint32_t Counter)
|
|
|
|
|
|
/**
|
|
|
* @brief Enable dithering.
|
|
|
- * @note Macro @ref IS_TIM_DITHERING_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_DITHERING_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides dithering.
|
|
|
* @rmtoll CR1 DITHEN LL_TIM_EnableDithering
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -2358,7 +2432,7 @@ __STATIC_INLINE void LL_TIM_EnableDithering(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Disable dithering.
|
|
|
- * @note Macro @ref IS_TIM_DITHERING_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_DITHERING_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides dithering.
|
|
|
* @rmtoll CR1 DITHEN LL_TIM_DisableDithering
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -2664,7 +2738,7 @@ __STATIC_INLINE void LL_TIM_OC_SetMode(TIM_TypeDef *TIMx, uint32_t Channel, uint
|
|
|
{
|
|
|
uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
|
|
|
__IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
|
|
|
- MODIFY_REG(*pReg, ((TIM_CCMR1_OC1M | TIM_CCMR1_CC1S) << SHIFT_TAB_OCxx[iChannel]), Mode << SHIFT_TAB_OCxx[iChannel]);
|
|
|
+ MODIFY_REG(*pReg, ((TIM_CCMR1_OC1M | TIM_CCMR1_CC1S) << SHIFT_TAB_OCxx[iChannel]), Mode << SHIFT_TAB_OCxx[iChannel]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -2705,7 +2779,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetMode(TIM_TypeDef *TIMx, uint32_t Channel)
|
|
|
{
|
|
|
uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
|
|
|
const __IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
|
|
|
- return (READ_BIT(*pReg, ((TIM_CCMR1_OC1M | TIM_CCMR1_CC1S) << SHIFT_TAB_OCxx[iChannel])) >> SHIFT_TAB_OCxx[iChannel]);
|
|
|
+ return (READ_BIT(*pReg, ((TIM_CCMR1_OC1M | TIM_CCMR1_CC1S) << SHIFT_TAB_OCxx[iChannel])) >> SHIFT_TAB_OCxx[iChannel]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -3091,7 +3165,8 @@ __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 IS_TIM_BREAK_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* 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
|
|
|
@@ -3380,7 +3455,7 @@ __STATIC_INLINE uint32_t LL_TIM_OC_GetPulseWidthPrescaler(TIM_TypeDef *TIMx)
|
|
|
*/
|
|
|
__STATIC_INLINE void LL_TIM_OC_SetPulseWidth(TIM_TypeDef *TIMx, uint32_t PulseWidth)
|
|
|
{
|
|
|
- MODIFY_REG(TIMx->ECR, TIM_ECR_PW, PulseWidth);
|
|
|
+ MODIFY_REG(TIMx->ECR, TIM_ECR_PW, PulseWidth << TIM_ECR_PW_Pos);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -3444,7 +3519,8 @@ __STATIC_INLINE void LL_TIM_IC_Config(TIM_TypeDef *TIMx, uint32_t Channel, uint3
|
|
|
uint8_t iChannel = TIM_GET_CHANNEL_INDEX(Channel);
|
|
|
__IO uint32_t *pReg = (__IO uint32_t *)((uint32_t)((uint32_t)(&TIMx->CCMR1) + OFFSET_TAB_CCMRx[iChannel]));
|
|
|
MODIFY_REG(*pReg, ((TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC | TIM_CCMR1_CC1S) << SHIFT_TAB_ICxx[iChannel]),
|
|
|
- ((Configuration >> 16U) & (TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC | TIM_CCMR1_CC1S)) << SHIFT_TAB_ICxx[iChannel]);
|
|
|
+ ((Configuration >> 16U) & (TIM_CCMR1_IC1F | TIM_CCMR1_IC1PSC | TIM_CCMR1_CC1S)) \
|
|
|
+ << SHIFT_TAB_ICxx[iChannel]);
|
|
|
MODIFY_REG(TIMx->CCER, ((TIM_CCER_CC1NP | TIM_CCER_CC1P) << SHIFT_TAB_CCxP[iChannel]),
|
|
|
(Configuration & (TIM_CCER_CC1NP | TIM_CCER_CC1P)) << SHIFT_TAB_CCxP[iChannel]);
|
|
|
}
|
|
|
@@ -4703,7 +4779,7 @@ __STATIC_INLINE void LL_TIM_SetBreakInputSourcePolarity(TIM_TypeDef *TIMx, uint3
|
|
|
}
|
|
|
/**
|
|
|
* @brief Enable asymmetrical deadtime.
|
|
|
- * @note Macro @ref IS_TIM_DEADTIME_ASYMMETRICAL_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_DEADTIME_ASYMMETRICAL_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides asymmetrical deadtime.
|
|
|
* @rmtoll DTR2 DTAE LL_TIM_EnableAsymmetricalDeadTime
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -4716,7 +4792,7 @@ __STATIC_INLINE void LL_TIM_EnableAsymmetricalDeadTime(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Disable asymmetrical dead-time.
|
|
|
- * @note Macro @ref IS_TIM_DEADTIME_ASYMMETRICAL_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_DEADTIME_ASYMMETRICAL_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides asymmetrical deadtime.
|
|
|
* @rmtoll DTR2 DTAE LL_TIM_DisableAsymmetricalDeadTime
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -4741,7 +4817,8 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledAsymmetricalDeadTime(TIM_TypeDef *TIMx)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Set the falling edge dead-time delay (delay inserted between the falling edge of the OCxREF signal and the rising edge of OCxN signals).
|
|
|
+ * @brief Set the falling edge dead-time delay (delay inserted between the falling edge of the OCxREF signal and the
|
|
|
+ * rising edge of OCxN signals).
|
|
|
* @note Macro IS_TIM_DEADTIME_ASYMMETRICAL_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* asymmetrical 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
|
|
|
@@ -4758,7 +4835,8 @@ __STATIC_INLINE void LL_TIM_SetFallingDeadTime(TIM_TypeDef *TIMx, uint32_t DeadT
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Get the falling edge dead-time delay (delay inserted between the falling edge of the OCxREF signal and the rising edge of OCxN signals).
|
|
|
+ * @brief Get the falling edge dead-time delay (delay inserted between the falling edge of the OCxREF signal and
|
|
|
+ * the rising edge of OCxN signals).
|
|
|
* @note Macro IS_TIM_DEADTIME_ASYMMETRICAL_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* asymmetrical dead-time insertion feature is supported by a timer instance.
|
|
|
* @note This bit-field can not be modified as long as LOCK level 1, 2 or 3 has been programmed
|
|
|
@@ -4774,7 +4852,7 @@ __STATIC_INLINE uint32_t LL_TIM_GetFallingDeadTime(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Enable deadtime preload.
|
|
|
- * @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 deadtime preload.
|
|
|
* @rmtoll DTR2 DTPE LL_TIM_EnableDeadTimePreload
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -4787,7 +4865,7 @@ __STATIC_INLINE void LL_TIM_EnableDeadTimePreload(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Disable dead-time preload.
|
|
|
- * @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 deadtime preload.
|
|
|
* @rmtoll DTR2 DTPE LL_TIM_DisableDeadTimePreload
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -5317,9 +5395,6 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledHSE32(TIM_TypeDef *TIMx)
|
|
|
{
|
|
|
return ((READ_BIT(TIMx->OR, TIM_OR_HSE32EN) == (TIM_OR_HSE32EN)) ? 1UL : 0UL);
|
|
|
}
|
|
|
-/**
|
|
|
- * @}
|
|
|
- */
|
|
|
|
|
|
/**
|
|
|
* @}
|
|
|
@@ -5617,7 +5692,8 @@ __STATIC_INLINE void LL_TIM_ClearFlag_CC1OVR(TIM_TypeDef *TIMx)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Indicate whether Capture/Compare 1 over-capture interrupt flag (CC1OF) is set (Capture/Compare 1 interrupt is pending).
|
|
|
+ * @brief Indicate whether Capture/Compare 1 over-capture interrupt flag (CC1OF) is set
|
|
|
+ * (Capture/Compare 1 interrupt is pending).
|
|
|
* @rmtoll SR CC1OF LL_TIM_IsActiveFlag_CC1OVR
|
|
|
* @param TIMx Timer instance
|
|
|
* @retval State of bit (1 or 0).
|
|
|
@@ -5639,7 +5715,8 @@ __STATIC_INLINE void LL_TIM_ClearFlag_CC2OVR(TIM_TypeDef *TIMx)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Indicate whether Capture/Compare 2 over-capture interrupt flag (CC2OF) is set (Capture/Compare 2 over-capture interrupt is pending).
|
|
|
+ * @brief Indicate whether Capture/Compare 2 over-capture interrupt flag (CC2OF) is set
|
|
|
+ * (Capture/Compare 2 over-capture interrupt is pending).
|
|
|
* @rmtoll SR CC2OF LL_TIM_IsActiveFlag_CC2OVR
|
|
|
* @param TIMx Timer instance
|
|
|
* @retval State of bit (1 or 0).
|
|
|
@@ -5661,7 +5738,8 @@ __STATIC_INLINE void LL_TIM_ClearFlag_CC3OVR(TIM_TypeDef *TIMx)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Indicate whether Capture/Compare 3 over-capture interrupt flag (CC3OF) is set (Capture/Compare 3 over-capture interrupt is pending).
|
|
|
+ * @brief Indicate whether Capture/Compare 3 over-capture interrupt flag (CC3OF) is set
|
|
|
+ * (Capture/Compare 3 over-capture interrupt is pending).
|
|
|
* @rmtoll SR CC3OF LL_TIM_IsActiveFlag_CC3OVR
|
|
|
* @param TIMx Timer instance
|
|
|
* @retval State of bit (1 or 0).
|
|
|
@@ -5683,7 +5761,8 @@ __STATIC_INLINE void LL_TIM_ClearFlag_CC4OVR(TIM_TypeDef *TIMx)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Indicate whether Capture/Compare 4 over-capture interrupt flag (CC4OF) is set (Capture/Compare 4 over-capture interrupt is pending).
|
|
|
+ * @brief Indicate whether Capture/Compare 4 over-capture interrupt flag (CC4OF) is set
|
|
|
+ * (Capture/Compare 4 over-capture interrupt is pending).
|
|
|
* @rmtoll SR CC4OF LL_TIM_IsActiveFlag_CC4OVR
|
|
|
* @param TIMx Timer instance
|
|
|
* @retval State of bit (1 or 0).
|
|
|
@@ -5769,7 +5848,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_IERR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Clear the direction change interrupt flag (DIRF).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll SR DIRF LL_TIM_ClearFlag_DIR
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -5782,7 +5861,7 @@ __STATIC_INLINE void LL_TIM_ClearFlag_DIR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Indicate whether direction change interrupt flag (DIRF) is set (direction change interrupt is pending).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll SR DIRF LL_TIM_IsActiveFlag_DIR
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -5795,7 +5874,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsActiveFlag_DIR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Clear the index interrupt flag (IDXF).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll SR IDXF LL_TIM_ClearFlag_IDX
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -5808,7 +5887,7 @@ __STATIC_INLINE void LL_TIM_ClearFlag_IDX(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Indicate whether index interrupt flag (IDXF) is set (index interrupt is pending).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll SR IDXF LL_TIM_IsActiveFlag_IDX
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6169,7 +6248,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_IERR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Enable direction change interrupt (DIRIE).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll DIER DIRIE LL_TIM_EnableIT_DIR
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6182,7 +6261,7 @@ __STATIC_INLINE void LL_TIM_EnableIT_DIR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Disable direction change interrupt (DIRIE).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll DIER DIRIE LL_TIM_DisableIT_DIR
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6195,7 +6274,7 @@ __STATIC_INLINE void LL_TIM_DisableIT_DIR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Indicates whether the direction change interrupt (DIRIE) is enabled.
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll DIER DIRIE LL_TIM_IsEnabledIT_DIR
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6208,7 +6287,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_DIR(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Enable index interrupt (IDXIE).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll DIER IDXIE LL_TIM_EnableIT_IDX
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6221,7 +6300,7 @@ __STATIC_INLINE void LL_TIM_EnableIT_IDX(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Disable index interrupt (IDXIE).
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll DIER IDXIE LL_TIM_DisableIT_IDX
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6234,7 +6313,7 @@ __STATIC_INLINE void LL_TIM_DisableIT_IDX(TIM_TypeDef *TIMx)
|
|
|
|
|
|
/**
|
|
|
* @brief Indicates whether the index interrupt (IDXIE) is enabled.
|
|
|
- * @note Macro @ref IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
+ * @note Macro IS_TIM_FUNCTINONAL_ENCODER_INTERRUPT_INSTANCE(TIMx) can be used to check whether or not
|
|
|
* a timer instance provides encoder interrupt management.
|
|
|
* @rmtoll DIER IDXIE LL_TIM_IsEnabledIT_IDX
|
|
|
* @param TIMx Timer instance
|
|
|
@@ -6249,7 +6328,7 @@ __STATIC_INLINE uint32_t LL_TIM_IsEnabledIT_IDX(TIM_TypeDef *TIMx)
|
|
|
* @}
|
|
|
*/
|
|
|
|
|
|
-/** @defgroup TIM_LL_EF_DMA_Management DMA-Management
|
|
|
+/** @defgroup TIM_LL_EF_DMA_Management DMA Management
|
|
|
* @{
|
|
|
*/
|
|
|
/**
|
|
|
@@ -6635,4 +6714,3 @@ ErrorStatus LL_TIM_BDTR_Init(TIM_TypeDef *TIMx, LL_TIM_BDTR_InitTypeDef *TIM_BDT
|
|
|
#endif
|
|
|
|
|
|
#endif /* __STM32G4xx_LL_TIM_H */
|
|
|
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|