472da16f9484fbae5f75ef7a4550931f841f30cf
[fw/altos] / src / spiradio-v0.1 / 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; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17  */
18
19 #ifndef _AO_PINS_H_
20 #define _AO_PINS_H_
21
22 #define HAS_RADIO               1
23
24 #define HAS_FLIGHT              0
25 #define HAS_USB                 0
26 #define HAS_BEEP                0
27 #define HAS_GPS                 0
28 #define HAS_SERIAL_0            0
29 #define HAS_SERIAL_0_ALT_1      0
30 #define HAS_SERIAL_0_HW_FLOW    0
31 #define USE_SERIAL_0_STDIN      0
32 #define HAS_SERIAL_1            1
33 #define HAS_SERIAL_1_ALT_1      1
34 #define HAS_SERIAL_1_HW_FLOW    0
35 #define USE_SERIAL_1_STDIN      1
36 #define DELAY_SERIAL_1_STDIN    0
37 #define HAS_ADC                 0
38 #define HAS_DBG                 0
39 #define HAS_EEPROM              0
40 #define HAS_LOG                 0
41 #define USE_INTERNAL_FLASH      0
42 #define DBG_ON_P1               0
43 #define PACKET_HAS_MASTER       0
44 #define PACKET_HAS_SLAVE        0
45 #define AO_LED_TX               1
46 #define AO_LED_RX               2
47 #define AO_LED_RED              AO_LED_TX
48 #define LEDS_AVAILABLE          (AO_LED_TX|AO_LED_RX)
49 #define HAS_EXTERNAL_TEMP       0
50 #define HAS_ACCEL_REF           0
51 #define SPI_CS_ON_P1            1
52 #define HAS_AES                 1
53
54 #define SPI_CS_PORT             P1
55 #define SPI_CS_SEL              P1SEL
56 #define SPI_CS_DIR              P1DIR
57 #define AO_SPI_SLAVE            1
58 #define HAS_SPI_0               1
59 #define SPI_0_ALT_2             1
60 #define HAS_SPI_1               0
61
62 #define AO_RADIO_SLAVE_INT_PORT P1
63 #define AO_RADIO_SLAVE_INT_BIT  6
64 #define AO_RADIO_SLAVE_INT_PIN  P1_6
65
66 #endif /* _AO_PINS_H_ */