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 :