@@ -1004,7 +1004,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
1004
1004
:((__INSTANCE__) == COMP5) ? COMP_EXTI_LINE_COMP5 \
1005
1005
:((__INSTANCE__) == COMP6) ? COMP_EXTI_LINE_COMP6 \
1006
1006
: COMP_EXTI_LINE_COMP7)
1007
- #elif defined(STM32GBK1CB ) || defined(STM32G431xx ) || defined(STM32G441xx ) || defined(STM32G471xx )
1007
+ #elif defined(STM32GBK1CB ) || defined(STM32G431xx ) || defined(STM32G441xx ) || defined(STM32G471xx ) || defined( STM32G491xx ) || defined( STM32G4A1xx )
1008
1008
#define COMP_GET_EXTI_LINE (__INSTANCE__ ) (((__INSTANCE__) == COMP1) ? COMP_EXTI_LINE_COMP1 \
1009
1009
:((__INSTANCE__) == COMP2) ? COMP_EXTI_LINE_COMP2 \
1010
1010
:((__INSTANCE__) == COMP3) ? COMP_EXTI_LINE_COMP3 \
@@ -1014,7 +1014,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
1014
1014
* @}
1015
1015
*/
1016
1016
1017
- /** @defgroup COMP_IS_COMP_Definitions COMP private macros to check input parameters
1017
+ /** @defgroup COMP_IS_COMP_Private_Definitions COMP private macros to check input parameters
1018
1018
* @{
1019
1019
*/
1020
1020
#define IS_COMP_INPUT_PLUS (__COMP_INSTANCE__ , __INPUT_PLUS__ ) (((__INPUT_PLUS__) == COMP_INPUT_PLUS_IO1) || \
@@ -1055,7 +1055,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
1055
1055
(((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC2_CH1) || \
1056
1056
((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC4_CH1)) \
1057
1057
))
1058
- #elif defined(STM32GBK1CB ) || defined(STM32G431xx ) || defined(STM32G441xx ) || defined(STM32G471xx )
1058
+ #elif defined(STM32GBK1CB ) || defined(STM32G431xx ) || defined(STM32G441xx ) || defined(STM32G471xx ) || defined( STM32G491xx ) || defined( STM32G4A1xx )
1059
1059
#define IS_COMP_INPUT_MINUS (__COMP_INSTANCE__ , __INPUT_MINUS__ ) (((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_4VREFINT) || \
1060
1060
((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_2VREFINT) || \
1061
1061
((__INPUT_MINUS__) == COMP_INPUT_MINUS_3_4VREFINT) || \
@@ -1219,6 +1219,39 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
1219
1219
|| ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM15_OC1) \
1220
1220
|| ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM4_OC3) \
1221
1221
)
1222
+ #elif defined(STM32G491xx ) || defined(STM32G4A1xx )
1223
+ #define IS_COMP_BLANKINGSRC_INSTANCE (__INSTANCE__ , __OUTPUT_BLANKING_SOURCE__ ) \
1224
+ ((((__INSTANCE__) == COMP1) && \
1225
+ (((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_NONE) || \
1226
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM1_OC5_COMP1) || \
1227
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM2_OC3_COMP1) || \
1228
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM3_OC3_COMP1) || \
1229
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM8_OC5_COMP1))) \
1230
+ || \
1231
+ (((__INSTANCE__) == COMP2) && \
1232
+ (((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_NONE) || \
1233
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM1_OC5_COMP2) || \
1234
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM2_OC3_COMP2) || \
1235
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM3_OC3_COMP2) || \
1236
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM8_OC5_COMP2))) \
1237
+ || \
1238
+ (((__INSTANCE__) == COMP3) && \
1239
+ (((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_NONE) || \
1240
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM1_OC5_COMP3) || \
1241
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM2_OC4_COMP3) || \
1242
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM3_OC3_COMP3) || \
1243
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM8_OC5_COMP3))) \
1244
+ || \
1245
+ (((__INSTANCE__) == COMP4) && \
1246
+ (((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_NONE) || \
1247
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM1_OC5_COMP4) || \
1248
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM3_OC4_COMP4) || \
1249
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM8_OC5_COMP4) || \
1250
+ ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM15_OC1_COMP4))) \
1251
+ || ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM20_OC5) \
1252
+ || ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM15_OC1) \
1253
+ || ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM4_OC3) \
1254
+ )
1222
1255
#endif
1223
1256
1224
1257
#define IS_COMP_TRIGGERMODE (__MODE__ ) (((__MODE__) == COMP_TRIGGERMODE_NONE) || \
0 commit comments