@@ -1004,7 +1004,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
10041004 :((__INSTANCE__) == COMP5) ? COMP_EXTI_LINE_COMP5 \
10051005 :((__INSTANCE__) == COMP6) ? COMP_EXTI_LINE_COMP6 \
10061006 : 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 )
10081008#define COMP_GET_EXTI_LINE (__INSTANCE__ ) (((__INSTANCE__) == COMP1) ? COMP_EXTI_LINE_COMP1 \
10091009 :((__INSTANCE__) == COMP2) ? COMP_EXTI_LINE_COMP2 \
10101010 :((__INSTANCE__) == COMP3) ? COMP_EXTI_LINE_COMP3 \
@@ -1014,7 +1014,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
10141014 * @}
10151015 */
10161016
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
10181018 * @{
10191019 */
10201020#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
10551055 (((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC2_CH1) || \
10561056 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_DAC4_CH1)) \
10571057 ))
1058- #elif defined(STM32GBK1CB ) || defined(STM32G431xx ) || defined(STM32G441xx ) || defined(STM32G471xx )
1058+ #elif defined(STM32GBK1CB ) || defined(STM32G431xx ) || defined(STM32G441xx ) || defined(STM32G471xx ) || defined( STM32G491xx ) || defined( STM32G4A1xx )
10591059#define IS_COMP_INPUT_MINUS (__COMP_INSTANCE__ , __INPUT_MINUS__ ) (((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_4VREFINT) || \
10601060 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_1_2VREFINT) || \
10611061 ((__INPUT_MINUS__) == COMP_INPUT_MINUS_3_4VREFINT) || \
@@ -1219,6 +1219,39 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
12191219 || ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM15_OC1) \
12201220 || ((__OUTPUT_BLANKING_SOURCE__) == COMP_BLANKINGSRC_TIM4_OC3) \
12211221 )
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+ )
12221255#endif
12231256
12241257#define IS_COMP_TRIGGERMODE (__MODE__ ) (((__MODE__) == COMP_TRIGGERMODE_NONE) || \
0 commit comments