summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-05-06 22:42:32 -0700
committerKeith Packard <keithp@keithp.com>2011-05-06 22:42:32 -0700
commit22e3ac0eb014b8255029763ae8180ad3527ba306 (patch)
treed44ad40559f3c289df1aa5c9eabbf33be029fe0f
parent6d858b64ee0e8c227c149d2af6d2d634536964f4 (diff)
altos: Add beeper to TBT v0.1
It's available, let's use it. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/Makefile.proto1
-rw-r--r--src/ao_btm.c4
-rw-r--r--src/ao_pins.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile.proto b/src/Makefile.proto
index 04b708b2..c86de823 100644
--- a/src/Makefile.proto
+++ b/src/Makefile.proto
@@ -259,6 +259,7 @@ TBT_V_0_1_SRC = \
$(TBT_BASE_SRC) \
$(SPI_DRIVER_SRC) \
$(M25_DRIVER_SRC) \
+ $(BEEP_DRIVER_SRC) \
ao_log_telem.c
#
diff --git a/src/ao_btm.c b/src/ao_btm.c
index 241b3f6a..4b3c5209 100644
--- a/src/ao_btm.c
+++ b/src/ao_btm.c
@@ -166,6 +166,10 @@ ao_btm(void)
*/
ao_delay(AO_SEC_TO_TICKS(3));
+#if HAS_BEEP
+ ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(200));
+#endif
+
/*
* The first time we connect, the BTM-180 comes up at 19200 baud.
* After that, it will remember and come up at 57600 baud. So, see
diff --git a/src/ao_pins.h b/src/ao_pins.h
index 21b99027..4a03ca50 100644
--- a/src/ao_pins.h
+++ b/src/ao_pins.h
@@ -250,7 +250,7 @@
#if defined(TELEBT_V_0_1)
#define HAS_FLIGHT 0
#define HAS_USB 1
- #define HAS_BEEP 0
+ #define HAS_BEEP 1
#define HAS_SERIAL_1 1
#define HAS_SERIAL_1_ALT_1 1
#define HAS_SERIAL_1_ALT_2 0