#include "ao.h"
#include "ao_telem.h"
+#if !HAS_MONITOR
+#error Must define HAS_MONITOR to 1
+#endif
+
__xdata uint8_t ao_monitoring;
__pdata uint8_t ao_monitor_led;
ao_cmd_white();
flush();
+#if HAS_MONITOR
ao_set_monitor(0);
+#endif
ao_add_task(&ao_packet_task, ao_packet_master, "master");
ao_add_task(&ao_packet_echo_task, ao_packet_echo, "echo");
while ((c = getchar()) != '~') {
#define HAS_ACCEL_REF 0
#define HAS_ACCEL 1
#define HAS_IGNITE 1
+ #define HAS_MONITOR 0
#endif
#if defined(TELEMETRUM_V_1_1)
#define M25_MAX_CHIPS 1
#define HAS_ACCEL 1
#define HAS_IGNITE 1
+ #define HAS_MONITOR 0
#endif
#if defined(TELEDONGLE_V_0_2)
#define SPI_CS_ON_P1 1
#define SPI_CS_ON_P0 0
#define HAS_IGNITE 0
+ #define HAS_MONITOR 1
#endif
#if defined(TELEMINI_V_1_0)
#define HAS_EXTERNAL_TEMP 0
#define HAS_ACCEL 0
#define HAS_IGNITE 1
+ #define HAS_MONITOR 0
#endif
#if defined(TELENANO_V_0_1)
#define HAS_EXTERNAL_TEMP 0
#define HAS_ACCEL 0
#define HAS_IGNITE 0
+ #define HAS_MONITOR 0
#endif
#if defined(TELEMETRUM_V_0_1)
#define SPI_CS_ON_P0 0
#define HAS_ACCEL 1
#define HAS_IGNITE 1
+ #define HAS_MONITOR 0
#endif
#if defined(TELEDONGLE_V_0_1)
#define SPI_CS_ON_P1 0
#define SPI_CS_ON_P0 1
#define HAS_IGNITE 0
+ #define HAS_MONITOR 1
#endif
#if defined(TIDONGLE)
#define SPI_CS_ON_P1 0
#define SPI_CS_ON_P0 1
#define HAS_IGNITE 0
+ #define HAS_MONITOR 1
#endif
#if defined(TELEBT_V_0_0)
#define BT_LINK_ON_P1 0
#define BT_LINK_PIN_INDEX 7
#define BT_LINK_PIN P2_1
+ #define HAS_MONITOR 1
#endif
#if defined(TELEBT_V_0_1)
#define BT_LINK_ON_P1 1
#define BT_LINK_PIN_INDEX 7
#define BT_LINK_PIN P1_7
+ #define HAS_MONITOR 1
#endif
#if DBG_ON_P1
#error Please define PACKET_HAS_SLAVE
#endif
+#ifndef HAS_MONITOR
+#error Please define HAS_MONITOR
+#endif
#endif /* _AO_PINS_H_ */