43#if defined(USE_FULL_DDL_DRIVER)
52#define ASSERT_PARAM(_PARAM_) ((void)0U)
59#if defined (COMP1) || defined (COMP2) || defined (COMP3) || defined (COMP4)
76#define IS_DDL_COMP_INPUT_PLUS(__COMP_INSTANCE__, __INPUT_PLUS__) \
77 ( ((__COMP_INSTANCE__) < COMP4) ? \
78 ( ((__INPUT_PLUS__) == DDL_COMP_INPUT_PLUS_INP0) || \
79 ((__INPUT_PLUS__) == DDL_COMP_INPUT_PLUS_DAC1)) \
81 ( ((__INPUT_PLUS__) == DDL_COMP_INPUT_PLUS_INP0) || \
82 ((__INPUT_PLUS__) == DDL_COMP_INPUT_PLUS_INP1) || \
83 ((__INPUT_PLUS__) == DDL_COMP_INPUT_PLUS_DAC1)) \
86#define IS_DDL_COMP_INPUT_MINUS(__COMP_INSTANCE__, __INPUT_MINUS__) \
87( ((__COMP_INSTANCE__) < COMP4) ? \
88 ( ((__INPUT_MINUS__) == DDL_COMP_INPUT_MINUS_INN0) || \
89 ((__INPUT_MINUS__) == DDL_COMP_INPUT_MINUS_DAC1) ) \
91 ( ((__INPUT_MINUS__) == DDL_COMP_INPUT_MINUS_INN0) || \
92 ((__INPUT_MINUS__) == DDL_COMP_INPUT_MINUS_INN1) || \
93 ((__INPUT_MINUS__) == DDL_COMP_INPUT_MINUS_DAC1) ) \
96#define IS_DDL_COMP_OUTPUT_POLARITY(__POLARITY__) \
97 ( ((__POLARITY__) == DDL_COMP_OUTPUTPOL_NONINVERTED) || \
98 ((__POLARITY__) == DDL_COMP_OUTPUTPOL_INVERTED) \
101#define IS_DDL_COMP_OUTPUT_BLANK(__BLANK__) \
102 ( ((__BLANK__) == DDL_COMP_BLANK_0) || \
103 ((__BLANK__) == DDL_COMP_BLANK_1) || \
104 ((__BLANK__) == DDL_COMP_BLANK_2) || \
105 ((__BLANK__) == DDL_COMP_BLANK_3) || \
106 ((__BLANK__) == DDL_COMP_BLANK_4) || \
107 ((__BLANK__) == DDL_COMP_BLANK_6) || \
108 ((__BLANK__) == DDL_COMP_BLANK_7) \
136 ErrorStatus status = SUCCESS;
149 MODIFY_REG(COMPx->CxCSR,
179 ErrorStatus status = SUCCESS;
G32 assert template file. This file should be copied to the application folder and renamed to g32_ass...
#define ASSERT_PARAM(_PARAM_)
Header file of COMP DDL module.
Header file of RCM DDL module.
#define DDL_COMP_OUTPUTPOL_NONINVERTED
ErrorStatus DDL_COMP_DeInit(COMP_TypeDef *COMPx)
De-Initialize COMP function.
ErrorStatus DDL_COMP_Init(COMP_TypeDef *COMPx, DDL_COMP_InitTypeDef *COMP_InitStruct)
Initialize COMP function.
void DDL_COMP_StructInit(DDL_COMP_InitTypeDef *COMP_InitStruct)
Set the fields of structure COMP_InitStruct to default values.
__STATIC_INLINE uint32_t DDL_COMP_IsLocked(COMP_TypeDef *COMPx)
Get comparator lock state.
#define DDL_COMP_WriteReg(__INSTANCE__, __REG__, __VALUE__)
Write a value in COMP register.
#define IS_DDL_COMP_OUTPUT_POLARITY(__POLARITY__)
#define IS_DDL_COMP_INPUT_PLUS(__COMP_INSTANCE__, __INPUT_PLUS__)
#define IS_DDL_COMP_OUTPUT_BLANK(__BLANK__)
#define IS_DDL_COMP_INPUT_MINUS(__COMP_INSTANCE__, __INPUT_MINUS__)
COMP Init structure definition.