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