/* Defines the length of the delay which is applied after a conversion or a sequence of conversion.  */
void ADC_DelaySelectionConfig(ADC_TypeDef *ADCx, uint8_t ADC_DelayLength)
/* Defines the length of the delay which is applied after a conversion or a sequence of conversion.  */
void ADC_DelaySelectionConfig(ADC_TypeDef *ADCx, uint8_t ADC_DelayLength)
{
  uint32_t tmpreg = 0;
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_ADC_DELAY_LENGTH(ADC_DelayLength));    
  tmpreg = ADCx->CR2;
  tmpreg &= CR2_DELS_RESET;
  tmpreg |= ADC_DelayLength;
  ADCx->CR2 = tmpreg;
}