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 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)
Link between ChibiOS ADC drivers and Paparazzi adc_buffers.
Common code for AP and FBW telemetry.
void light_solar_periodic(void)
static struct adc_buf buf_light_sol_up
#define ADC_CHANNEL_LIGHT_NB_SAMPLES
static struct adc_buf buf_light_sol_dn
#define ADC_CHANNEL_LIGHT_SOLAR_UP
void light_solar_init(void)
#define ADC_CHANNEL_LIGHT_SOLAR_DN
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
int int32_t
Typedef defining 32 bit int type.