39 #define AD0_VIC_SLOT 2
45 #define AD1_VIC_SLOT 4
56 void adcISR0(
void) __attribute__((naked));
57 void adcISR1(
void) __attribute__((naked));
62 if (adc_channel >= (
NB_ADC * 2))
return;
102 #if defined USE_AD1_2
105 #if defined USE_AD1_3
108 #if defined USE_AD1_4
111 #if defined USE_AD1_5
117 #if defined USE_AD0_0
120 #if defined USE_AD0_1
123 #if defined USE_AD0_2
126 #if defined USE_AD0_3
129 #if defined USE_AD0_4
132 #if defined USE_AD0_5
135 #if defined USE_AD1_6
138 #if defined USE_AD1_7
144 static const uint32_t ADC_AD0CR_SEL_HW_SCAN = 0
145 #if defined USE_AD0_0
148 #if defined USE_AD0_1
151 #if defined USE_AD0_2
154 #if defined USE_AD0_3
157 #if defined USE_AD0_4
160 #if defined USE_AD0_5
163 #if defined USE_AD0_6
166 #if defined USE_AD0_7
173 static const uint32_t ADC_AD1CR_SEL_HW_SCAN = 0
174 #if defined USE_AD1_0
177 #if defined USE_AD1_1
180 #if defined USE_AD1_2
183 #if defined USE_AD1_3
186 #if defined USE_AD1_4
189 #if defined USE_AD1_5
192 #if defined USE_AD1_6
195 #if defined USE_AD1_7
213 AD0CR = ADC_AD0CR_SEL_HW_SCAN | 0xFF << 8 | 1 << 16 | 0x01 << 21 ;
228 AD1CR = ADC_AD1CR_SEL_HW_SCAN | 0xFF << 8 | 1 << 16 | 0x01 << 21 ;
254 buf->
values[new_head] = value;
256 buf->
head = new_head;
275 buf->
values[new_head] = value;
277 buf->
head = new_head;