32 #include "pprzlink/messages.h"
36 #ifndef ADC_CHANNEL_LIGHT_SOLAR_UP
37 #define ADC_CHANNEL_LIGHT_SOLAR_UP ADC_1
39 #ifndef ADC_CHANNEL_LIGHT_SOLAR_DN
40 #define ADC_CHANNEL_LIGHT_SOLAR_DN ADC_2
43 #ifndef ADC_CHANNEL_LIGHT_NB_SAMPLES
44 #define ADC_CHANNEL_LIGHT_NB_SAMPLES 16
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
static struct adc_buf buf_light_sol_up
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.
arch independent ADC (Analog to Digital Converter) API
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.
#define ADC_CHANNEL_LIGHT_SOLAR_DN
void light_solar_periodic(void)
#define ADC_CHANNEL_LIGHT_NB_SAMPLES
void light_solar_init(void)
Common code for AP and FBW telemetry.
static struct adc_buf buf_light_sol_dn
#define ADC_CHANNEL_LIGHT_SOLAR_UP