altos: pull TBT v0.1 ser_reset line low
authorKeith Packard <keithp@keithp.com>
Sat, 7 May 2011 05:12:31 +0000 (22:12 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 May 2011 05:12:31 +0000 (22:12 -0700)
This line resets the BT module if held low for three seconds.

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

index 355c3ca4f6e3529307dcc3393d7ea08d071e1441..241b3f6a5b053e489ef7362e93887313dac7a57a 100644 (file)
@@ -254,6 +254,15 @@ ao_btm_init (void)
        ao_serial_init();
        ao_serial_set_speed(AO_SERIAL_SPEED_19200);
 
        ao_serial_init();
        ao_serial_set_speed(AO_SERIAL_SPEED_19200);
 
+#if BT_LINK_ON_P1
+       /*
+        * Configure ser reset line
+        */
+
+       P1_6 = 0;
+       P1DIR |= (1 << 6);
+#endif
+
        /*
         * Configure link status line
         */
        /*
         * Configure link status line
         */