/* Use the DMA to get the results of the ADC converter.  */
HAL_StatusTypeDef HAL_ADC_Dma(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
/* Use the DMA to get the results of the ADC converter.  */
HAL_StatusTypeDef HAL_ADC_Dma(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
{
    HAL_StatusTypeDef tmp_hal_status;
    if(!hadc->AdcResults)  return HAL_ERROR;
    if(HAL_ADC_Start(hadc) != HAL_OK)  return HAL_ERROR;
    if(!pData)  return HAL_ERROR;
    hadc->AdcResults = pData;
    tmp_hal_status = HAL_ADC_Start_DMA(hadc,hadc->AdcResults,Length);
    if(tmp_hal_status != HAL_OK) return HAL_ERROR;
    while(!gu32_ITC_Conunt){}
    gu32_ITC_Conunt--;
    if(hadc->Init.ConConvMode == ADC_CONCONVMODE_DISABLE)
        HAL_ADC_Stop_DMA(hadc);
    return tmp_hal_status;
}