ï‚· Deinitialization can't be performed if the COMP configuration
is locked. To unlock the configuration, perform a system
reset.
void COMP_Init ( uint32_t COMP_Selection,
COMP_InitTypeDef * COMP_InitStruct)
ï‚· COMP_Selection : the selected comparator. This parameter
can be COMP_Selection_COMPx where x can be 1 to 7 to
select the COMP peripheral.
ï‚· COMP_InitStruct : pointer to an COMP_InitTypeDef
structure that contains the configuration information for the
specified COMP peripheral. COMP_InvertingInput specifies
the inverting input of COMPCOMP_NonInvertingInput
specifies the non inverting input of COMPCOMP_Output
connect COMP output to selected timer input (Input capture /
Output Compare Reference Clear / Break
Input)COMP_BlankingSrce specifies the blanking source of
COMPCOMP_OutputPol select output
polarityCOMP_Hysteresis configures COMP hysteresis
valueCOMP_Mode configures COMP power mode
ï€ COMP_InvertingInput :
ï€ COMP_NonInvertingInput :
ï€ COMP_Output :
ï€ COMP_BlankingSrce :
ï€ COMP_OutputPol :
ï€ COMP_Hysteresis :