#ifndef __ADC_H #define __ADC_H #include "stm32f4xx.h" #define ADC_SAMPLE_PNUM 1//AD 采样点数数 10 #define CHANEEL_NUM 24 extern __IO uint16_t ADC_ConvertedValue[ADC_SAMPLE_PNUM][CHANEEL_NUM]; //extern __IO uint16_t ADC_ConvertedValue[CHANEEL_NUM*2]; static void ADC_GPIO_Config(void); static void ADC_DMA_Config(void); void ADC_AllInit(void); void get_adcnum(void); #endif