altos: spiradio debug serial is port 1, not port 0
[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; 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 #define HAS_FLIGHT              0
24 #define HAS_USB                 0
25 #define HAS_BEEP                0
26 #define HAS_GPS                 0
27 #define HAS_SERIAL_0            0
28 #define HAS_SERIAL_0_ALT_1      0
29 #define HAS_SERIAL_0_HW_FLOW    0
30 #define USE_SERIAL_0_STDIN      0
31 #define HAS_SERIAL_1            1
32 #define HAS_SERIAL_1_ALT_1      1
33 #define HAS_SERIAL_1_HW_FLOW    0
34 #define USE_SERIAL_1_STDIN      1
35 #define DELAY_SERIAL_1_STDIN    0
36 #define HAS_ADC                 0
37 #define HAS_DBG                 0
38 #define HAS_EEPROM              0
39 #define HAS_LOG                 0
40 #define USE_INTERNAL_FLASH      0
41 #define DBG_ON_P1               0
42 #define PACKET_HAS_MASTER       0
43 #define PACKET_HAS_SLAVE        0
44 #define AO_LED_RED              1
45 #define AO_LED_GREEN            2
46 #define LEDS_AVAILABLE          (AO_LED_RED|AO_LED_GREEN)
47 #define HAS_EXTERNAL_TEMP       0
48 #define HAS_ACCEL_REF           0
49 #define SPI_CS_ON_P1            1
50 #define HAS_AES                 1
51
52 #define SPI_CS_PORT             P1
53 #define SPI_CS_SEL              P1SEL
54 #define SPI_CS_DIR              P1DIR
55 #define AO_SPI_SLAVE            1
56 #define HAS_SPI_0               1
57 #define SPI_0_ALT_2             1
58 #define HAS_SPI_1               0
59
60 #define AO_RADIO_SLAVE_INT_PORT P1
61 #define AO_RADIO_SLAVE_INT_BIT  6
62 #define AO_RADIO_SLAVE_INT_PIN  P1_6
63
64 #endif /* _AO_PINS_H_ */