#ifndef MYADC_H #define MYADC_H #include "stm32f10x.h" #include "GPIO.h" typedef struct { ADC_TypeDef * ADC; char channel; } MyADC_Struct_TypeDef; void MyADC_init(MyADC_Struct_TypeDef* myADC); void MyADC_start_conversion(ADC_TypeDef* ADC); void MyADC_ActiveIT (ADC_TypeDef * ADC, char Prio, void (*IT_function)(void)); int MyADC_result(ADC_TypeDef* ADC); #endif