*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
#ifdef TELETERRA_V_0_2
#define HAS_FLIGHT 0
#define HAS_USB 1
+ #define HAS_RADIO 1
#define HAS_BEEP 1
#define HAS_GPS 1
#define HAS_SERIAL_1 1
#define HAS_ADC 0
- #define USE_SERIAL_STDIN 0
+ #define HAS_LCD 1
#define HAS_EEPROM 1
#define HAS_LOG 1
#define USE_INTERNAL_FLASH 0
#define IGNITE_ON_P0 0
#define PACKET_HAS_MASTER 1
#define PACKET_HAS_SLAVE 0
+ #define HAS_RADIO_CHANNELS 1
#define HAS_COMPANION 0
+ #define AO_MONITOR_LED 0
#define LEDS_AVAILABLE 0
#define HAS_EXTERNAL_TEMP 0
#define HAS_ACCEL_REF 0
#define HAS_ACCEL 0
#define HAS_IGNITE 0
#define HAS_MONITOR 1
+ #define HAS_MONITOR_PUT 1
#define LEGACY_MONITOR 0
#define HAS_RSSI 0
#define HAS_AES 0
#define M25_CS_MASK 0x04
#define M25_MAX_CHIPS 1
+ #define HAS_BUTTON 1
+ #define BUTTON_1_REG 0
+ #define BUTTON_1_MASK (1 << 4) /* P0_4 */
+
+ #define BUTTON_2_REG 2
+ #define BUTTON_2_MASK (1 << 3) /* P2_3 */
+
+ #define BUTTON_3_REG 2
+ #define BUTTON_3_MASK (1 << 4) /* P2_4 */
+
#define HAS_P2_ISR 1
- #define HAS_BUTTON_P0 1
- #define HAS_BUTTON_P2 1
+
+ #define BATTERY_PIN 5
+ #define HAS_TELEMETRY 0
+
+ #define AO_VALUE_32 0
+
+ #define AO_LOG_FORMAT AO_LOG_FORMAT_TELEMETRY
#endif
#if DBG_ON_P1
#error Please define HAS_SERIAL_1
#endif
-#ifndef USE_SERIAL_STDIN
-#error Please define USE_SERIAL_STDIN
-#endif
-
#ifndef HAS_ADC
#error Please define HAS_ADC
#endif
#define AO_IGNITER_FIRE_TIME AO_MS_TO_TICKS(50)
#define AO_IGNITER_CHARGE_TIME AO_MS_TO_TICKS(2000)
+#define AO_M25_SPI_CS_PORT SPI_CS_PORT
+#define AO_M25_SPI_CS_MASK M25_CS_MASK
+
#endif /* _AO_PINS_H_ */