#ifndef _API_RT_ADC_H_ #define _API_RT_ADC_H_ #include #include "gd32f30x.h" #define ADC_DEVICE_COUNT 1 #define ADC_RESULT_SIZE 16 typedef struct { uint32_t AdcBase; uint32_t DmaBase; dma_channel_enum *DmaChannelBase; uint16_t Results[ADC_RESULT_SIZE]; } Adc_Handle; extern Adc_Handle Adcs[2]; void AdcLow_Init(void); void AdcLow_CompleteIsr(uint8_t devIndex); #endif