34 #ifndef MCU_PERIPH_ADC_H
35 #define MCU_PERIPH_ADC_H
38 #include "mcu_periph/adc_arch.h"
40 #define MAX_AV_NB_SAMPLE 0x20
41 #define DEFAULT_AV_NB_SAMPLE 0x20
void adc_buf_channel(uint8_t adc_channel, struct adc_buf *s, uint8_t av_nb_sample)
Link between ChibiOS ADC drivers and Paparazzi adc_buffers.
void adc_init(void)
Starts conversions.
uint16_t values[MAX_AV_NB_SAMPLE]
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.