/* Initializes the parameters in the CMP_InitStruct with default value.  */
void CMP_StructInit(CMP_InitTypeDef *CMP_InitStruct)
/* Initializes the parameters in the CMP_InitStruct with default value.  */
void CMP_StructInit(CMP_InitTypeDef *CMP_InitStruct)
{
	u8 i;
	for(i = 0; i < COMP_CH_NUM; i++) {
		CMP_InitStruct->CMP_ChanCtrl[i].CMP_ChIndex = i;
		CMP_InitStruct->CMP_ChanCtrl[i].CMP_Ref0 = 0;
		CMP_InitStruct->CMP_ChanCtrl[i].CMP_Ref1 = 0x1F;
		CMP_InitStruct->CMP_ChanCtrl[i].CMP_WakeType = COMP_WK_NONE;
		CMP_InitStruct->CMP_ChanCtrl[i].CMP_WakeSysCtrl = COMP_WITHIN_REF0_AND_REF1;
		CMP_InitStruct->CMP_ChanCtrl[i].CMP_WakeADCCtrl = COMP_WITHIN_REF0_AND_REF1;
	}
}