39 #define AD0_VIC_SLOT 2
45 #define AD1_VIC_SLOT 4
56 void adcISR0(
void) __attribute__((naked));
57 void adcISR1(
void) __attribute__((naked));
61 buffers[adc_channel] = s;
100 #if defined USE_AD1_2
103 #if defined USE_AD1_3
106 #if defined USE_AD1_4
109 #if defined USE_AD1_5
115 #if defined USE_AD0_0
118 #if defined USE_AD0_1
121 #if defined USE_AD0_2
124 #if defined USE_AD0_3
127 #if defined USE_AD0_4
130 #if defined USE_AD0_5
133 #if defined USE_AD1_6
136 #if defined USE_AD1_7
142 #if defined USE_AD0_0
145 #if defined USE_AD0_1
148 #if defined USE_AD0_2
151 #if defined USE_AD0_3
154 #if defined USE_AD0_4
157 #if defined USE_AD0_5
160 #if defined USE_AD0_6
163 #if defined USE_AD0_7
169 #if defined USE_AD1_0
172 #if defined USE_AD1_1
175 #if defined USE_AD1_2
178 #if defined USE_AD1_3
181 #if defined USE_AD1_4
184 #if defined USE_AD1_5
187 #if defined USE_AD1_6
190 #if defined USE_AD1_7
248 buf->
values[new_head] = value;
250 buf->
head = new_head;
269 buf->
values[new_head] = value;
271 buf->
head = new_head;
volatile uint16_t adc0_val[NB_ADC]
static const uint32_t ADC_PINSEL1_ONES
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.
#define NB_ADC
8 ADCs for bank 0, others for bank 2
arch independent ADC (Analog to Digital Converter) API
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.
volatile uint16_t adc1_val[NB_ADC]
static const uint32_t ADC_PINSEL0_ONES
uint16_t values[MAX_AV_NB_SAMPLE]
static struct adc_buf * buffers[NB_ADC *2]
First NB_ADC for bank 0, others for bank 2.
static const uint32_t ADC_AD0CR_SEL_HW_SCAN
void adc_init(void)
Adc init.
static const uint32_t ADC_AD1CR_SEL_HW_SCAN