diff options
author | Keith Packard <keithp@keithp.com> | 2011-05-06 22:12:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-06 22:12:31 -0700 |
commit | 6d858b64ee0e8c227c149d2af6d2d634536964f4 (patch) | |
tree | 497e435bf8eac77e1863d0d8ed6b6e8ff1292e20 | |
parent | 3336d0f726afd1d43cf62280940e5fb91dab2e91 (diff) |
altos: pull TBT v0.1 ser_reset line low
This line resets the BT module if held low for three seconds.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/ao_btm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ao_btm.c b/src/ao_btm.c index 355c3ca4..241b3f6a 100644 --- a/src/ao_btm.c +++ b/src/ao_btm.c @@ -254,6 +254,15 @@ ao_btm_init (void) 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 */ |