summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-02-01 16:57:14 +0100
committerKeith Packard <keithp@keithp.com>2015-02-01 16:57:14 +0100
commitbe443d8d50ad8f59a74bf2f4e810a7359ff72132 (patch)
tree01b33054dbb22200a5713bfcd00bdd1d7c7718b4
parent6eb145d48cfcabf757093433bd2314a80e490a17 (diff)
altos/telebt-v3.0: Add monitor bits
Will be useful to actually be able to receive telemetry Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/telebt-v3.0/Makefile1
-rw-r--r--src/telebt-v3.0/ao_pins.h5
-rw-r--r--src/telebt-v3.0/ao_telebt.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/telebt-v3.0/Makefile b/src/telebt-v3.0/Makefile
index 6331a7b2..a7ef4d64 100644
--- a/src/telebt-v3.0/Makefile
+++ b/src/telebt-v3.0/Makefile
@@ -55,6 +55,7 @@ ALTOS_SRC = \
ao_convert_volt.c \
ao_packet_master.c \
ao_packet.c \
+ ao_monitor.c \
$(PROFILE) \
$(SAMPLE_PROFILE) \
$(STACK_GUARD)
diff --git a/src/telebt-v3.0/ao_pins.h b/src/telebt-v3.0/ao_pins.h
index f178c349..bcda90d1 100644
--- a/src/telebt-v3.0/ao_pins.h
+++ b/src/telebt-v3.0/ao_pins.h
@@ -200,4 +200,9 @@ struct ao_adc {
#define HAS_BOOT_RADIO 0
+/* Monitor bits */
+#define HAS_MONITOR 1
+#define LEGACY_MONITOR 0
+#define AO_MONITOR_LED AO_LED_RED
+
#endif /* _AO_PINS_H_ */
diff --git a/src/telebt-v3.0/ao_telebt.c b/src/telebt-v3.0/ao_telebt.c
index 133383ef..44ee4f3d 100644
--- a/src/telebt-v3.0/ao_telebt.c
+++ b/src/telebt-v3.0/ao_telebt.c
@@ -49,6 +49,7 @@ main(void)
ao_usb_init();
ao_radio_init();
ao_packet_master_init();
+ ao_monitor_init();
ao_config_init();