/* ADC MSP initialization This function configures the hardware resources used in this example:  */
void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc)
/* ADC MSP initialization This function configures the hardware resources used in this example:  */
void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc)
{
  GPIO_InitTypeDef          GPIO_InitStruct;
  ADCx_CHANNELa_GPIO_CLK_ENABLE();
  ADCx_CLK_ENABLE();
  GPIO_InitStruct.Pin = ADCx_CHANNELa_PIN;
  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  HAL_GPIO_Init(ADCx_CHANNELa_GPIO_PORT, &GPIO_InitStruct);
  HAL_NVIC_SetPriority(ADCx_IRQn, 0, 0);
  HAL_NVIC_EnableIRQ(ADCx_IRQn);
}