altos: Add beeper to TBT v0.1
authorKeith Packard <keithp@keithp.com>
Sat, 7 May 2011 05:42:32 +0000 (22:42 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 May 2011 05:42:32 +0000 (22:42 -0700)
It's available, let's use it.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/Makefile.proto
src/ao_btm.c
src/ao_pins.h

index 04b708b2e46f7ca64d674d6d97b54ec44960011b..c86de8236c096ef1bc00f605b7bdca3a812eb282 100644 (file)
@@ -259,6 +259,7 @@ TBT_V_0_1_SRC = \
        $(TBT_BASE_SRC) \
        $(SPI_DRIVER_SRC) \
        $(M25_DRIVER_SRC) \
        $(TBT_BASE_SRC) \
        $(SPI_DRIVER_SRC) \
        $(M25_DRIVER_SRC) \
+       $(BEEP_DRIVER_SRC) \
        ao_log_telem.c
 
 #
        ao_log_telem.c
 
 #
index 241b3f6a5b053e489ef7362e93887313dac7a57a..4b3c52092937ddc5f34cae6e00e3012a51ea9a40 100644 (file)
@@ -166,6 +166,10 @@ ao_btm(void)
         */
        ao_delay(AO_SEC_TO_TICKS(3));
 
         */
        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
        /*
         * 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
index 21b99027096b535f3ab7a27aeb09a6f77fffa623..4a03ca508ae9ab628ce17d554ec37c7c502b6243 100644 (file)
 #if defined(TELEBT_V_0_1)
        #define HAS_FLIGHT              0
        #define HAS_USB                 1
 #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
        #define HAS_SERIAL_1            1
        #define HAS_SERIAL_1_ALT_1      1
        #define HAS_SERIAL_1_ALT_2      0