void ADC_DisableChannel(AT91S_ADC *pAdc, unsigned int channel) { ASSERT(channel < 8, "ADC Channel not exist"); // Write to the CHDR register pAdc->ADC_CHDR = (1 << channel); }