Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
adc_arch.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010-2012 Paparazzi team
3  *
4  * This file is part of Paparazzi.
5  *
6  * Paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * Paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
30 #ifndef ADC_ARCH_H
31 #define ADC_ARCH_H
32 
33 #include BOARD_CONFIG
34 
35 // NB_ADCx_CHANNELS
37 #ifdef USE_AD1_1
38  ADC1_C1,
39 #endif
40 #ifdef USE_AD1_2
41  ADC1_C2,
42 #endif
43 #ifdef USE_AD1_3
44  ADC1_C3,
45 #endif
46 #ifdef USE_AD1_4
47  ADC1_C4,
48 #endif
50 };
51 
53 #ifdef USE_AD2_1
54  ADC2_C1,
55 #endif
56 #ifdef USE_AD2_2
57  ADC2_C2,
58 #endif
59 #ifdef USE_AD2_3
60  ADC2_C3,
61 #endif
62 #ifdef USE_AD2_4
63  ADC2_C4,
64 #endif
66 };
67 
68 #ifdef NB_ADC
69 #undef NB_ADC
70 #endif
71 
72 #define NB_ADC (NB_ADC1_CHANNELS + NB_ADC2_CHANNELS)
73 
74 #define AdcBank0(x) (x)
75 #define AdcBank1(x) (x+NB_ADC)
76 
77 #endif /* ADC_ARCH_H */
adc1_channels
Definition: adc_arch.h:36
adc2_channels
Definition: adc_arch.h:52