/* ADC MSP de-initialization This function frees the hardware resources used in this example:  */
void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)
/* ADC MSP de-initialization This function frees the hardware resources used in this example:  */
void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)
{
  ADCx_FORCE_RESET();
  ADCx_RELEASE_RESET();
  HAL_GPIO_DeInit(ADCx_CHANNELa_GPIO_PORT, ADCx_CHANNELa_PIN);
  if(hadc->DMA_Handle != NULL)
  {
    HAL_DMA_DeInit(hadc->DMA_Handle);
  }
  HAL_NVIC_DisableIRQ(ADCx_IRQn);
}