/* set auto detect comparator stop need wait period.  */
void SetAutoDetectPeriod(bool per)
/* set auto detect comparator stop need wait period.  */
void SetAutoDetectPeriod(bool per)
{
    uint32_t Temp = 0;
    Temp = LPRCNT->CAL3;
    Temp &= (~LPRCNT_CAL3_CMP_AUTO_MODE);
    Temp |= (uint32_t)(per <<6);
    LPRCNT->CAL3 = Temp;
}