11 #ifndef ADC_CHANNEL_GENERIC1
12 #ifndef ADC_CHANNEL_GENERIC2
13 #error "at least one ADC_CHANNEL_GENERIC1/2 needs to be defined to use the generic_adc module"
17 #ifndef ADC_CHANNEL_GENERIC_NB_SAMPLES
18 #define ADC_CHANNEL_GENERIC_NB_SAMPLES DEFAULT_AV_NB_SAMPLE
22 #ifdef ADC_CHANNEL_GENERIC1
23 static struct adc_buf buf_generic1;
26 #ifdef ADC_CHANNEL_GENERIC2
27 static struct adc_buf buf_generic2;
32 #ifdef ADC_CHANNEL_GENERIC1
35 #ifdef ADC_CHANNEL_GENERIC2
42 #ifdef ADC_CHANNEL_GENERIC1
45 #ifdef ADC_CHANNEL_GENERIC2
#define ADC_CHANNEL_GENERIC_NB_SAMPLES
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
uint16_t adc_generic_val1
void adc_generic_periodic(void)
arch independent ADC (Analog to Digital Converter) API
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.
void adc_buf_channel(uint8_t adc_channel, struct adc_buf *s, uint8_t av_nb_sample)
Registers a buffer to be used to store the specified converted channel Usage:
#define DefaultChannel
SITL.
Common code for AP and FBW telemetry.
void adc_generic_init(void)
uint16_t adc_generic_val2