From: Keith Packard Date: Sat, 7 May 2011 05:42:32 +0000 (-0700) Subject: altos: Add beeper to TBT v0.1 X-Git-Tag: 0.9.3~40^2~5 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=22e3ac0eb014b8255029763ae8180ad3527ba306 altos: Add beeper to TBT v0.1 It's available, let's use it. Signed-off-by: Keith Packard --- 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