/* LPRCNT module can work in two mode.this is LPRCNT mode and calibration mode .  */
void LPRCNT_CompInit(LPRCNT_COMP_InitType *COMP_InitStruct)
/* LPRCNT module can work in two mode.this is LPRCNT mode and calibration mode .  */
void LPRCNT_CompInit(LPRCNT_COMP_InitType *COMP_InitStruct)
{
    uint32_t Temp ;
    Temp = LPRCNT->CAL3;
    Temp &= (~LPRCNT_CAL3_CMP_HYSEL);
    Temp |= COMP_InitStruct->Hyst;
    Temp &= (~LPRCNT_CAL3_CMP_INMSEL);
    Temp |= COMP_InitStruct->InmSel;
    Temp |= COMP_InitStruct->LowPoweMode;
    LPRCNT->CAL3 = Temp;
}