Lines Matching refs:eadc

116 	EADC_T *eadc = cfg->eadc_base;  in adc_numaker_isr()  local
125 LOG_DBG("ADC ISR STATUS2[0x%x] STATUS3[0x%x]", eadc->STATUS2, eadc->STATUS3); in adc_numaker_isr()
131 if (!(eadc->STATUS2 & EADC_STATUS2_BUSY_Msk) && in adc_numaker_isr()
132 ((eadc->STATUS3 & EADC_STATUS3_CURSPL_Msk) == EADC_STATUS3_CURSPL_Msk)) { in adc_numaker_isr()
134 EADC_STOP_CONV(eadc, module_mask); in adc_numaker_isr()
137 EADC_DISABLE_INT(eadc, BIT0); in adc_numaker_isr()
140 EADC_DISABLE_SAMPLE_MODULE_INT(eadc, 0, module_mask); in adc_numaker_isr()
146 conv_data = EADC_GET_CONV_DATA(eadc, module_id); in adc_numaker_isr()
154 eadc->SCTL[module_id] = 0; in adc_numaker_isr()
162 EADC_CLR_INT_FLAG(eadc, EADC_STATUS2_ADIF0_Msk); in adc_numaker_isr()
168 EADC_T *eadc = cfg->eadc_base; in m_adc_numaker_start_scan() local
180 EADC_ConfigSampleModule(eadc, module_id, in m_adc_numaker_start_scan()
183 EADC_SetExtendSampleTime(eadc, module_id, data->acq_time); in m_adc_numaker_start_scan()
187 EADC_CLR_INT_FLAG(eadc, EADC_STATUS2_ADIF0_Msk); in m_adc_numaker_start_scan()
190 EADC_ENABLE_INT(eadc, BIT0); in m_adc_numaker_start_scan()
193 EADC_ENABLE_SAMPLE_MODULE_INT(eadc, 0, module_mask); in m_adc_numaker_start_scan()
196 EADC_START_CONV(eadc, module_mask); in m_adc_numaker_start_scan()
231 EADC_T *eadc = cfg->eadc_base; in adc_context_on_complete() local
236 EADC_Close(eadc); in adc_context_on_complete()
244 EADC_T *eadc = cfg->eadc_base; in m_adc_numaker_start_read() local
261 EADC_Open(eadc, EADC_CTL_DIFFEN_DIFFERENTIAL); in m_adc_numaker_start_read()
263 EADC_Open(eadc, EADC_CTL_DIFFEN_SINGLE_END); in m_adc_numaker_start_read()