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
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 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.
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