/* Selectes the differential mode for a specific channel.  */
void ADC_SelectDifferentialMode(ADC_TypeDef *ADCx, uint8_t ADC_Channel, FunctionalState NewState)
/* Selectes the differential mode for a specific channel.  */
void ADC_SelectDifferentialMode(ADC_TypeDef *ADCx, uint8_t ADC_Channel, FunctionalState NewState)
{
  assert_param(IS_ADC_ALL_PERIPH(ADCx)); 
  assert_param(IS_ADC_DIFFCHANNEL(ADC_Channel)); 
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
   ADCx->DIFSEL |= (uint32_t)(1 << ADC_Channel );
  }
  else
  {
   ADCx->DIFSEL &= ~(uint32_t)(1 << ADC_Channel);
  }
}