void AdcStop() { StopTimer(); g_adc_elapsed_time = GetTime(); g_adcStatus = 2; ADC_StopConversion(ADC3); ADC_StopConversion(ADC4); }
void stop_ADC(void) { ADC_StopConversion(ADC1); ADC_StopConversion(ADC3); ADC_StopConversion(ADC2); ADC_StopConversion(ADC4); while((ADC1->CR & ADC_CR_ADSTP) || (ADC2->CR & ADC_CR_ADSTP) || (ADC3->CR & ADC_CR_ADSTP) || (ADC4->CR & ADC_CR_ADSTP)); ADC_Cmd(ADC1, DISABLE); ADC_Cmd(ADC2, DISABLE); ADC_Cmd(ADC3, DISABLE); ADC_Cmd(ADC4, DISABLE); driver_stat.statusAdc = HALT_ADC; return; }