/* This function make EADC_module be ready to convert.  */
void EADC_Open(EADC_T *eadc, uint32_t u32InputMode)
/* This function make EADC_module be ready to convert.  */
void EADC_Open(EADC_T *eadc, uint32_t u32InputMode)
{
    eadc->CTL &= (~(EADC_CTL_DIFFEN_Msk));
    eadc->CTL |= (u32InputMode | EADC_CTL_ADCEN_Msk);
    while(!(eadc->PWRM & EADC_PWRM_PWUPRDY_Msk)) {}
}