forked from trocache/RefKEIL
15 lines
No EOL
368 B
C
15 lines
No EOL
368 B
C
#ifndef MYADC_H
|
|
#define MYADC_H
|
|
|
|
#include "stm32f10x.h"
|
|
|
|
typedef struct {
|
|
ADC_TypeDef * ADC; // Pointeur vers la structure de regitre GPIO défini dans stm32f10x_gpio.h
|
|
char GPIO_Pin; //numero de 0 a 15
|
|
char GPIO_Conf; // voir ci dessous
|
|
} MyADC_Struct_TypeDef;
|
|
|
|
void MyADC_Init(MyADC_Struct_TypeDef *ADC);
|
|
uint16_t MyADC_Read(MyADC_Struct_TypeDef *ADC);
|
|
|
|
#endif |