altos: Report total available log space in version command
[fw/altos] / src / cc1111 / ao_pins.h
1 /*
2  * Copyright © 2010 Keith Packard <keithp@keithp.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 2 of the License.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write to the Free Software Foundation, Inc.,
15  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
16  */
17
18 #ifndef _AO_PINS_H_
19 #define _AO_PINS_H_
20
21 #define HAS_RADIO               1
22 #define DISABLE_LOG_SPACE       1
23
24 #if defined(TELEMETRUM_V_1_0)
25         /* Discontinued and was never built with CC1111 chips needing this */
26         #define NEEDS_CC1111_CLOCK_HACK 0
27         #define HAS_FLIGHT              1
28         #define HAS_USB                 1
29         #define HAS_BEEP                1
30         #define HAS_BEEP_CONFIG         0
31         #define HAS_GPS                 1
32         #define HAS_SERIAL_1            1
33         #define HAS_ADC                 1
34         #define HAS_EEPROM              1
35         #define HAS_LOG                 1
36         #define USE_INTERNAL_FLASH      0
37         #define HAS_DBG                 1
38         #define DBG_ON_P1               1
39         #define DBG_ON_P0               0
40         #define IGNITE_ON_P2            1
41         #define IGNITE_ON_P0            0
42         #define PACKET_HAS_MASTER       0
43         #define PACKET_HAS_SLAVE        1
44         #define NOISY_ACCEL             1
45
46         #define HAS_COMPANION           1
47         #define COMPANION_CS_ON_P1      1
48         #define AO_COMPANION_CS_PORT    P1
49         #define AO_COMPANION_CS_PIN     2
50         #define AO_COMPANION_CS         P1_2
51
52         #define AO_LED_RED              1
53         #define LEDS_AVAILABLE          (AO_LED_RED)
54         #define HAS_EXTERNAL_TEMP       0
55         #define HAS_ACCEL_REF           0
56         #define HAS_ACCEL               1
57         #define HAS_IGNITE              1
58         #define HAS_MONITOR             0
59 #endif
60
61 #if defined(TELEMETRUM_V_1_1)
62         /* Discontinued and was never built with CC1111 chips needing this */
63         #define NEEDS_CC1111_CLOCK_HACK 0
64         #define HAS_FLIGHT              1
65         #define HAS_USB                 1
66         #define HAS_BEEP                1
67         #define HAS_BEEP_CONFIG         0
68         #define HAS_BATTERY_REPORT      1
69         #define HAS_GPS                 1
70         #define HAS_SERIAL_1            1
71         #define HAS_ADC                 1
72         #define HAS_EEPROM              1
73         #define HAS_LOG                 1
74         #define USE_INTERNAL_FLASH      0
75         #define HAS_DBG                 1
76         #define DBG_ON_P1               1
77         #define DBG_ON_P0               0
78         #define IGNITE_ON_P2            1
79         #define IGNITE_ON_P0            0
80         #define PACKET_HAS_MASTER       0
81         #define PACKET_HAS_SLAVE        1
82
83         #define HAS_COMPANION           1
84         #define AO_COMPANION_CS_PORT    P1
85         #define AO_COMPANION_CS_PIN     2
86         #define AO_COMPANION_CS         P1_2
87
88         #define AO_LED_RED              1
89         #define LEDS_AVAILABLE          (AO_LED_RED)
90         #define HAS_EXTERNAL_TEMP       0
91         #define HAS_ACCEL_REF           1
92         #define SPI_CS_ON_P1            1
93         #define SPI_CS_ON_P0            0
94         #define AO_M25_SPI_CS_MASK      0x02    /* CS0 is P1_1 */
95         #define M25_MAX_CHIPS           1
96         #define HAS_ACCEL               1
97         #define HAS_IGNITE              1
98         #define HAS_MONITOR             0
99 #endif
100
101 #if defined(TELEMETRUM_V_1_2)
102         /* Discontinued and was never built with CC1111 chips needing this */
103         #define NEEDS_CC1111_CLOCK_HACK 0
104         #define HAS_FLIGHT              1
105         #define HAS_USB                 1
106         #define HAS_BEEP                1
107         #define HAS_BEEP_CONFIG         0
108         #define HAS_BATTERY_REPORT      1
109         #define HAS_GPS                 1
110         #define HAS_SERIAL_1            1
111         #define HAS_ADC                 1
112         #define HAS_EEPROM              1
113         #define HAS_LOG                 1
114         #define USE_INTERNAL_FLASH      0
115         #define HAS_DBG                 1
116         #define DBG_ON_P1               1
117         #define DBG_ON_P0               0
118         #define IGNITE_ON_P2            1
119         #define IGNITE_ON_P0            0
120         #define PACKET_HAS_MASTER       0
121         #define PACKET_HAS_SLAVE        1
122
123         #define HAS_COMPANION           1
124         #define AO_COMPANION_CS_PORT    P1
125         #define AO_COMPANION_CS_PIN     2
126         #define AO_COMPANION_CS         P1_2
127
128         #define AO_LED_RED              1
129         #define LEDS_AVAILABLE          (AO_LED_RED)
130         #define HAS_EXTERNAL_TEMP       0
131         #define HAS_ACCEL_REF           1
132         #define SPI_CS_ON_P1            1
133         #define SPI_CS_ON_P0            0
134         #define AO_M25_SPI_CS_MASK      0x02    /* CS0 is P1_1 */
135         #define M25_MAX_CHIPS           1
136         #define HAS_ACCEL               1
137         #define HAS_IGNITE              1
138         #define HAS_MONITOR             0
139 #endif
140
141 #if defined(TELEDONGLE_V_0_2)
142         #define HAS_FLIGHT              0
143         #define HAS_USB                 1
144         #define HAS_BEEP                0
145         #define HAS_SERIAL_1            0
146         #define HAS_ADC                 0
147         #define HAS_DBG                 1
148         #define HAS_EEPROM              0
149         #define HAS_LOG                 0
150         #define DBG_ON_P1               1
151         #define DBG_ON_P0               0
152         #define IGNITE_ON_P2            0
153         #define IGNITE_ON_P0            0
154         #define PACKET_HAS_MASTER       1
155         #define PACKET_HAS_SLAVE        0
156         #define AO_LED_RED              1
157         #define AO_LED_GREEN            2
158         #define AO_MONITOR_LED          AO_LED_GREEN
159         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
160         #define SPI_CS_ON_P1            1
161         #define SPI_CS_ON_P0            0
162         #define HAS_IGNITE              0
163         #define HAS_MONITOR             1
164         #define LEGACY_MONITOR          1
165         #define HAS_RSSI                1
166         #define HAS_AES                 0
167 #endif
168
169 #if defined(TELEMINI_V_1_0)
170         /* Discontinued and was never built with CC1111 chips needing this */
171         #define NEEDS_CC1111_CLOCK_HACK 0
172         #define HAS_FLIGHT              1
173         #define HAS_USB                 0
174         #define HAS_BEEP                0
175         #define HAS_GPS                 0
176         #define HAS_SERIAL_1            0
177         #define HAS_ADC                 1
178         #define HAS_EEPROM              1
179         #define HAS_LOG                 1
180         #define HAS_FORCE_FREQ          1
181         #define USE_INTERNAL_FLASH      1
182         #define HAS_DBG                 0
183         #define IGNITE_ON_P2            0
184         #define IGNITE_ON_P0            1
185         #define PACKET_HAS_MASTER       0
186         #define PACKET_HAS_SLAVE        1
187         #define USE_FAST_ASCENT_LOG     1
188
189         #define AO_LED_GREEN            1
190         #define AO_LED_RED              2
191         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
192         #define HAS_EXTERNAL_TEMP       0
193         #define HAS_ACCEL               0
194         #define HAS_IGNITE              1
195         #define HAS_MONITOR             0
196 #endif
197
198 #if defined(TELENANO_V_0_1)
199         /* Discontinued and was never built with CC1111 chips needing this */
200         #define NEEDS_CC1111_CLOCK_HACK 0
201         #define HAS_FLIGHT              1
202         #define HAS_USB                 0
203         #define HAS_BEEP                0
204         #define HAS_GPS                 0
205         #define HAS_SERIAL_1            0
206         #define HAS_ADC                 1
207         #define HAS_EEPROM              1
208         #define HAS_LOG                 1
209         #define USE_INTERNAL_FLASH      1
210         #define HAS_DBG                 0
211         #define IGNITE_ON_P2            0
212         #define IGNITE_ON_P0            1
213         #define PACKET_HAS_MASTER       0
214         #define PACKET_HAS_SLAVE        1
215
216         #define AO_LED_GREEN            1
217         #define AO_LED_RED              2
218         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
219         #define HAS_EXTERNAL_TEMP       0
220         #define HAS_ACCEL               0
221         #define HAS_IGNITE              0
222         #define HAS_MONITOR             0
223 #endif
224
225 #if defined(TELEMETRUM_V_0_1)
226         /* Discontinued and was never built with CC1111 chips needing this */
227         #define NEEDS_CC1111_CLOCK_HACK 0
228         #define HAS_FLIGHT              1
229         #define HAS_USB                 1
230         #define HAS_BEEP                1
231         #define HAS_BEEP_CONFIG         0
232         #define HAS_GPS                 1
233         #define HAS_SERIAL_1            1
234         #define HAS_ADC                 1
235         #define HAS_DBG                 0
236         #define HAS_EEPROM              1
237         #define HAS_LOG                 1
238         #define USE_INTERNAL_FLASH      0
239         #define DBG_ON_P1               0
240         #define DBG_ON_P0               1
241         #define IGNITE_ON_P2            1
242         #define IGNITE_ON_P0            0
243         #define PACKET_HAS_MASTER       0
244         #define PACKET_HAS_SLAVE        1
245         #define AO_LED_RED              2
246         #define AO_LED_GREEN            1
247         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
248         #define HAS_EXTERNAL_TEMP       1
249         #define HAS_ACCEL_REF           0
250         #define SPI_CS_ON_P1            1
251         #define SPI_CS_ON_P0            0
252         #define HAS_ACCEL               1
253         #define HAS_IGNITE              1
254         #define HAS_MONITOR             0
255         #define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX        ((uint32_t) 127 * (uint32_t) 1024)
256 #endif
257
258 #if defined(TELEDONGLE_V_0_1)
259         /* Discontinued and was never built with CC1111 chips needing this */
260         #define NEEDS_CC1111_CLOCK_HACK 0
261         #define HAS_FLIGHT              0
262         #define HAS_USB                 1
263         #define HAS_BEEP                0
264         #define HAS_SERIAL_1            0
265         #define HAS_ADC                 0
266         #define HAS_DBG                 0
267         #define HAS_EEPROM              0
268         #define HAS_LOG                 0
269         #define DBG_ON_P1               0
270         #define DBG_ON_P0               1
271         #define IGNITE_ON_P2            0
272         #define IGNITE_ON_P0            0
273         #define PACKET_HAS_MASTER       1
274         #define PACKET_HAS_SLAVE        0
275         #define AO_LED_RED              2
276         #define AO_LED_GREEN            1
277         #define AO_MONITOR_LED          AO_LED_GREEN
278         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
279         #define SPI_CS_ON_P1            0
280         #define SPI_CS_ON_P0            1
281         #define HAS_IGNITE              0
282         #define HAS_MONITOR             1
283         #define LEGACY_MONITOR          1
284         #define HAS_RSSI                1
285         #define HAS_AES                 0
286 #endif
287
288 #if defined(TIDONGLE)
289         /* Discontinued and was never built with CC1111 chips needing this */
290         #define NEEDS_CC1111_CLOCK_HACK 0
291         #define HAS_FLIGHT              0
292         #define HAS_USB                 1
293         #define HAS_BEEP                0
294         #define HAS_SERIAL_1            0
295         #define HAS_ADC                 0
296         #define HAS_DBG                 1
297         #define HAS_EEPROM              0
298         #define HAS_LOG                 0
299         #define DBG_ON_P1               0
300         #define DBG_ON_P0               1
301         #define IGNITE_ON_P2            0
302         #define IGNITE_ON_P0            0
303         #define PACKET_HAS_MASTER       1
304         #define PACKET_HAS_SLAVE        0
305         #define AO_LED_RED              2
306         #define AO_MONITOR_LED          AO_LED_RED
307         #define LEDS_AVAILABLE          (AO_LED_RED)
308         #define SPI_CS_ON_P1            0
309         #define SPI_CS_ON_P0            1
310         #define HAS_IGNITE              0
311         #define HAS_MONITOR             1
312         #define LEGACY_MONITOR          1
313         #define HAS_RSSI                1
314         #define HAS_AES                 0
315 #endif
316
317 #if defined(TELEBT_V_0_0)
318         /* Discontinued and was never built with CC1111 chips needing this */
319         #define NEEDS_CC1111_CLOCK_HACK 0
320         #define HAS_FLIGHT              0
321         #define HAS_USB                 1
322         #define HAS_BEEP                0
323         #define HAS_SERIAL_1            1
324         #define USE_SERIAL_1_STDIN      1
325         #define DELAY_SERIAL_1_STDIN    1
326         #define HAS_ADC                 0
327         #define HAS_DBG                 1
328         #define HAS_EEPROM              0
329         #define HAS_LOG                 0
330         #define HAS_BTM                 1
331         #define DBG_ON_P1               0
332         #define DBG_ON_P0               1
333         #define IGNITE_ON_P2            0
334         #define IGNITE_ON_P0            0
335         #define PACKET_HAS_MASTER       1
336         #define PACKET_HAS_SLAVE        0
337         #define AO_LED_RED              2
338         #define AO_LED_GREEN            1
339         #define AO_MONITOR_LED          AO_LED_RED
340         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
341         #define SPI_CS_ON_P1            1
342         #define SPI_CS_ON_P0            0
343         #define HAS_IGNITE              0
344         #define HAS_IGNITE_REPORT       1
345         #define BT_LINK_ON_P2           1
346         #define BT_LINK_ON_P1           0
347         #define BT_LINK_PIN_INDEX       7
348         #define BT_LINK_PIN             P2_1
349         #define HAS_MONITOR             1
350         #define LEGACY_MONITOR          1
351         #define HAS_RSSI                0
352         #define HAS_AES                 0
353 #endif
354
355 #if defined(TELEBT_V_0_1)
356         /* Discontinued and was never built with CC1111 chips needing this */
357         #define NEEDS_CC1111_CLOCK_HACK 0
358         #define HAS_FLIGHT              0
359         #define HAS_USB                 1
360         #define HAS_BEEP                1
361         #define HAS_BEEP_CONFIG         0
362         #define HAS_SERIAL_1            1
363         #define HAS_SERIAL_1_ALT_1      1
364         #define HAS_SERIAL_1_ALT_2      0
365         #define HAS_SERIAL_1_HW_FLOW    1
366         #define USE_SERIAL_1_STDIN      1
367         #define DELAY_SERIAL_1_STDIN    1
368         #define HAS_ADC                 0
369         #define HAS_DBG                 1
370         #define HAS_EEPROM              1
371         #define HAS_LOG                 1
372         #define USE_INTERNAL_FLASH      0
373         #define HAS_BTM                 1
374         #define DBG_ON_P1               1
375         #define DBG_ON_P0               0
376         #define IGNITE_ON_P2            0
377         #define IGNITE_ON_P0            0
378         #define PACKET_HAS_MASTER       1
379         #define PACKET_HAS_SLAVE        0
380         #define AO_LED_RED              1
381         #define AO_LED_GREEN            2
382         #define AO_MONITOR_LED          AO_LED_RED
383         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
384         #define SPI_CS_ON_P1            1
385         #define SPI_CS_ON_P0            0
386         #define AO_M25_SPI_CS_MASK      0x04    /* CS0 is P1_2 */
387         #define M25_MAX_CHIPS           1
388         #define HAS_ACCEL               0
389         #define HAS_IGNITE              0
390         #define HAS_IGNITE_REPORT       1
391         #define BT_LINK_ON_P2           0
392         #define BT_LINK_ON_P1           1
393         #define BT_LINK_PIN_INDEX       7
394         #define BT_LINK_PIN             P1_7
395         #define HAS_MONITOR             1
396         #define LEGACY_MONITOR          1
397         #define HAS_RSSI                0
398         #define HAS_AES                 0
399 #endif
400
401 #if defined(TELELAUNCH_V_0_1)
402         /* Discontinued and was never built with CC1111 chips needing this */
403         #define NEEDS_CC1111_CLOCK_HACK 0
404         #define HAS_FLIGHT              0
405         #define HAS_USB                 1
406         #define HAS_BEEP                1
407         #define HAS_GPS                 0
408         #define HAS_SERIAL_1            1
409         #define HAS_ADC                 1
410         #define HAS_DBG                 0
411         #define HAS_EEPROM              1
412         #define HAS_LOG                 0
413         #define USE_INTERNAL_FLASH      1
414         #define DBG_ON_P1               0
415         #define DBG_ON_P0               1
416         #define IGNITE_ON_P2            1
417         #define IGNITE_ON_P0            0
418         #define PACKET_HAS_MASTER       0
419         #define PACKET_HAS_SLAVE        0
420         #define AO_LED_RED              2
421         #define AO_LED_GREEN            1
422         #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
423         #define HAS_EXTERNAL_TEMP       1
424         #define HAS_ACCEL_REF           0
425         #define SPI_CS_ON_P1            1
426         #define SPI_CS_ON_P0            0
427         #define HAS_ACCEL               0
428         #define HAS_IGNITE              1
429         #define HAS_MONITOR             0
430         #define HAS_AES                 1
431 #endif
432
433 #if DBG_ON_P1
434
435         #define DBG_CLOCK       (1 << 4)        /* mi0 */
436         #define DBG_DATA        (1 << 5)        /* mo0 */
437         #define DBG_RESET_N     (1 << 3)        /* c0 */
438
439         #define DBG_CLOCK_PIN   (P1_4)
440         #define DBG_DATA_PIN    (P1_5)
441         #define DBG_RESET_N_PIN (P1_3)
442
443         #define DBG_PORT_NUM    1
444         #define DBG_PORT        P1
445         #define DBG_PORT_SEL    P1SEL
446         #define DBG_PORT_INP    P1INP
447         #define DBG_PORT_DIR    P1DIR
448
449 #endif /* DBG_ON_P1 */
450
451 #if DBG_ON_P0
452
453         #define DBG_CLOCK       (1 << 3)
454         #define DBG_DATA        (1 << 4)
455         #define DBG_RESET_N     (1 << 5)
456
457         #define DBG_CLOCK_PIN   (P0_3)
458         #define DBG_DATA_PIN    (P0_4)
459         #define DBG_RESET_N_PIN (P0_5)
460
461         #define DBG_PORT_NUM    0
462         #define DBG_PORT        P0
463         #define DBG_PORT_SEL    P0SEL
464         #define DBG_PORT_INP    P0INP
465         #define DBG_PORT_DIR    P0DIR
466
467 #endif /* DBG_ON_P0 */
468
469 #if COMPANION_CS_ON_P1
470         #define COMPANION_CS_PORT       P1
471         #define COMPANION_CS_SEL        P1SEL
472         #define COMPANION_CS_DIR        P1DIR
473 #endif
474
475 #if SPI_CS_ON_P1
476         #define SPI_CS_PORT     P1
477         #define SPI_CS_SEL      P1SEL
478         #define SPI_CS_DIR      P1DIR
479 #endif
480
481 #if SPI_CS_ON_P0
482         #define SPI_CS_PORT     P0
483         #define SPI_CS_SEL      P0SEL
484         #define SPI_CS_DIR      P0DIR
485 #endif
486
487 #define AO_M25_SPI_CS_PORT      SPI_CS_PORT
488
489 #ifndef IGNITE_ON_P2
490 #error Please define IGNITE_ON_P2
491 #endif
492
493 #ifndef IGNITE_ON_P0
494 #error Please define IGNITE_ON_P0
495 #endif
496
497 #ifndef HAS_ADC
498 #error Please define HAS_ADC
499 #endif
500
501 #ifndef HAS_EEPROM
502 #error Please define HAS_EEPROM
503 #endif
504
505 #ifndef HAS_LOG
506 #error Please define HAS_LOG
507 #endif
508
509 #if HAS_EEPROM
510 #ifndef USE_INTERNAL_FLASH
511 #error Please define USE_INTERNAL_FLASH
512 #endif
513 #endif
514
515 #ifndef HAS_DBG
516 #error Please define HAS_DBG
517 #endif
518
519 #ifndef HAS_IGNITE
520 #error Please define HAS_IGNITE
521 #endif
522
523 #if HAS_IGNITE
524 #define HAS_IGNITE_REPORT 1
525 #endif
526
527 #ifndef PACKET_HAS_MASTER
528 #error Please define PACKET_HAS_MASTER
529 #endif
530
531 #ifndef PACKET_HAS_SLAVE
532 #error Please define PACKET_HAS_SLAVE
533 #endif
534
535 #ifndef HAS_MONITOR
536 #error Please define HAS_MONITOR
537 #endif
538
539 #if HAS_MONITOR
540 #ifndef HAS_RSSI
541 #error Please define HAS_RSSI
542 #endif
543 #endif
544
545 #ifndef HAS_ADC
546 #error Please define HAS_ADC
547 #endif
548
549 #if HAS_ADC
550
551 #if HAS_ACCEL
552 #ifndef HAS_ACCEL_REF
553 #error Please define HAS_ACCEL_REF
554 #endif
555 #else
556 #define HAS_ACCEL_REF 0
557 #endif
558
559 #endif /* HAS_ADC */
560
561 #if IGNITE_ON_P2
562 #define AO_IGNITER_PORT         P2
563 #define AO_IGNITER_DROGUE_PORT  AO_IGNITER_PORT
564 #define AO_IGNITER_DROGUE       P2_3
565 #define AO_IGNITER_MAIN         P2_4
566 #define AO_IGNITER_DIR          P2DIR
567 #define AO_IGNITER_DROGUE_BIT   (1 << 3)
568 #define AO_IGNITER_MAIN_BIT     (1 << 4)
569 #define AO_IGNITER_DROGUE_PIN   3
570 #define AO_IGNITER_MAIN_PIN     4
571 #endif
572
573 #if IGNITE_ON_P0
574 #define AO_IGNITER_PORT         P0
575 #define AO_IGNITER_DROGUE       P0_5
576 #define AO_IGNITER_MAIN         P0_4
577 #define AO_IGNITER_DIR          P0DIR
578 #define AO_IGNITER_DROGUE_BIT   (1 << 5)
579 #define AO_IGNITER_MAIN_BIT     (1 << 4)
580 #define AO_IGNITER_DROGUE_PIN   5
581 #define AO_IGNITER_MAIN_PIN     4
582 #endif
583
584 #define AO_IGNITER_DROGUE_PORT  AO_IGNITER_PORT
585 #define AO_IGNITER_MAIN_PORT    AO_IGNITER_PORT
586
587 /* test these values with real igniters */
588 #define AO_IGNITER_OPEN         1000
589 #define AO_IGNITER_CLOSED       7000
590 #define AO_IGNITER_FIRE_TIME    AO_MS_TO_TICKS(50)
591 #define AO_IGNITER_CHARGE_TIME  AO_MS_TO_TICKS(2000)
592
593 struct ao_adc {
594         int16_t         accel;          /* accelerometer */
595         int16_t         pres;           /* pressure sensor */
596         int16_t         temp;           /* temperature sensor */
597         int16_t         v_batt;         /* battery voltage */
598         int16_t         sense_d;        /* drogue continuity sense */
599         int16_t         sense_m;        /* main continuity sense */
600 #if HAS_ACCEL_REF
601         uint16_t        accel_ref;      /* acceleration reference */
602 #endif
603 };
604
605 /*
606  * Voltage divider on ADC battery sampler
607  */
608 #define AO_BATTERY_DIV_PLUS     5       /* 5k */
609 #define AO_BATTERY_DIV_MINUS    10      /* 10k */
610
611 /*
612  * Voltage divider on ADC igniter samplers
613  */
614 #define AO_IGNITE_DIV_PLUS      100     /* 100k */
615 #define AO_IGNITE_DIV_MINUS     27      /* 27k */
616
617 /*
618  * ADC reference in decivolts
619  */
620 #define AO_ADC_REFERENCE_DV     33
621
622 #endif /* _AO_PINS_H_ */