You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* regular mode (compare match issued as soon as counter equal compare),
1129
1131
* or in auto-delayed mode
1130
1132
*/
1131
-
#defineHRTIM_AUTODELAYEDMODE_REGULAR (0x00000000U) /*!< standard compare mode */
1132
-
#defineHRTIM_AUTODELAYEDMODE_AUTODELAYED_NOTIMEOUT (HRTIM_TIMCR_DELCMP2_0) /*!< Compare event generated only if a capture has occurred */
1133
-
#defineHRTIM_AUTODELAYEDMODE_AUTODELAYED_TIMEOUTCMP1 (HRTIM_TIMCR_DELCMP2_1) /*!< Compare event generated if a capture has occurred or after a Compare 1 match (timeout if capture event is missing) \
1134
-
*/
1133
+
#defineHRTIM_AUTODELAYEDMODE_REGULAR (0x00000000U) /*!< standard compare mode */
1134
+
#defineHRTIM_AUTODELAYEDMODE_AUTODELAYED_NOTIMEOUT (HRTIM_TIMCR_DELCMP2_0) /*!< Compare event generated only if a capture has occurred */
(HRTIM_TIMCR_DELCMP2_1 | HRTIM_TIMCR_DELCMP2_0) /*!< Compare event generated if a capture has occurred or after a Compare 3 match (timeout if capture event is missing) */
Copy file name to clipboardExpand all lines: Lib/Vendor/STM32_HAL_LL/STM32G4xx/Inc/stm32g4xx_ll_comp.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -127,8 +127,9 @@ typedef struct {
127
127
(COMP_CSR_INMSEL_2) /*!< Comparator input minus connected to DAC3 Channel 2 for COMP2/4. Note: For COMPx & DACx instances availability, please refer to datasheet */
128
128
#defineLL_COMP_INPUT_MINUS_DAC4_CH1 \
129
129
(COMP_CSR_INMSEL_2) /*!< Comparator input minus connected to DAC4 Channel 1 for COMP5/7. Note: For COMPx & DACx instances availability, please refer to datasheet */
130
-
#defineLL_COMP_INPUT_MINUS_DAC4_CH2 (COMP_CSR_INMSEL_2) /*!< Comparator input minus connected to DAC4 Channel 2 for COMP6. Note: For COMPx & DACx instances availability, please refer to datasheet \
131
-
*/
130
+
#defineLL_COMP_INPUT_MINUS_DAC4_CH2 \
131
+
(COMP_CSR_INMSEL_2) /*!< Comparator input minus connected to DAC4 Channel 2 for COMP6. Note: For COMPx & DACx instances availability, please refer to datasheet \
132
+
*/
132
133
#defineLL_COMP_INPUT_MINUS_IO1 \
133
134
(COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1) /*!< Comparator input minus connected to IO1 (pin PA4 for COMP1, pin PA5 for COMP2, pin PF1 for COMP3, pin PE8 for COMP4, pin PB10 for COMP5, pin PD10 \
134
135
for COMP6, pin PD15 for COMP7). Note: For COMPx instance availability, please refer to datasheet */
Copy file name to clipboardExpand all lines: Lib/Vendor/STM32_HAL_LL/STM32G4xx/Inc/stm32g4xx_ll_tim.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -662,8 +662,9 @@ typedef struct {
662
662
#defineLL_TIM_COUNTERMODE_DOWN TIM_CR1_DIR /*!< Counter used as downcounter */
663
663
#defineLL_TIM_COUNTERMODE_CENTER_DOWN \
664
664
TIM_CR1_CMS_0 /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting down. */
665
-
#defineLL_TIM_COUNTERMODE_CENTER_UP TIM_CR1_CMS_1 /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up \
666
-
*/
665
+
#defineLL_TIM_COUNTERMODE_CENTER_UP \
666
+
TIM_CR1_CMS_1 /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up \
667
+
*/
667
668
#defineLL_TIM_COUNTERMODE_CENTER_UP_DOWN \
668
669
TIM_CR1_CMS /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up or down. */
Copy file name to clipboardExpand all lines: Lib/Vendor/STM32_HAL_LL/STM32L4xx/Inc/stm32l4xx_ll_comp.h
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -159,10 +159,12 @@ typedef struct {
159
159
#defineLL_COMP_INPUT_MINUS_IO1 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1) /*!< Comparator input minus connected to IO1 (pin PB1 for COMP1, pin PB3 for COMP2) */
160
160
#defineLL_COMP_INPUT_MINUS_IO2 (COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) /*!< Comparator input minus connected to IO2 (pin PC4 for COMP1, pin PB7 for COMP2) */
161
161
#if defined(COMP_CSR_INMESEL_1)
162
-
#defineLL_COMP_INPUT_MINUS_IO3 (COMP_CSR_INMESEL_0 | COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) /*!< Comparator input minus connected to IO3 (pin PA0 for COMP1, pin PA2 for COMP2) \
163
-
*/
164
-
#defineLL_COMP_INPUT_MINUS_IO4 (COMP_CSR_INMESEL_1 | COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) /*!< Comparator input minus connected to IO4 (pin PA4 for COMP1, pin PA4 for COMP2) \
165
-
*/
162
+
#defineLL_COMP_INPUT_MINUS_IO3 \
163
+
(COMP_CSR_INMESEL_0 | COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) /*!< Comparator input minus connected to IO3 (pin PA0 for COMP1, pin PA2 for COMP2) \
164
+
*/
165
+
#defineLL_COMP_INPUT_MINUS_IO4 \
166
+
(COMP_CSR_INMESEL_1 | COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) /*!< Comparator input minus connected to IO4 (pin PA4 for COMP1, pin PA4 for COMP2) \
167
+
*/
166
168
#defineLL_COMP_INPUT_MINUS_IO5 \
167
169
(COMP_CSR_INMESEL_1 | COMP_CSR_INMESEL_0 | COMP_CSR_INMSEL_2 | COMP_CSR_INMSEL_1 | COMP_CSR_INMSEL_0) /*!< Comparator input minus connected to IO5 (pin PA5 for COMP1, pin PA5 for COMP2) */
Copy file name to clipboardExpand all lines: Lib/Vendor/STM32_HAL_LL/STM32L4xx/Inc/stm32l4xx_ll_tim.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -644,8 +644,9 @@ typedef struct {
644
644
#defineLL_TIM_COUNTERMODE_DOWN TIM_CR1_DIR /*!< Counter used as downcounter */
645
645
#defineLL_TIM_COUNTERMODE_CENTER_DOWN \
646
646
TIM_CR1_CMS_0 /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting down. */
647
-
#defineLL_TIM_COUNTERMODE_CENTER_UP TIM_CR1_CMS_1 /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up \
648
-
*/
647
+
#defineLL_TIM_COUNTERMODE_CENTER_UP \
648
+
TIM_CR1_CMS_1 /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up \
649
+
*/
649
650
#defineLL_TIM_COUNTERMODE_CENTER_UP_DOWN \
650
651
TIM_CR1_CMS /*!< The counter counts up and down alternatively. Output compare interrupt flags of output channels are set only when the counter is counting up or down. */
0 commit comments