projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3336d0f
)
altos: pull TBT v0.1 ser_reset line low
author
Keith Packard
<keithp@keithp.com>
Sat, 7 May 2011 05:12:31 +0000
(22:12 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/ao_btm.c
b/src/ao_btm.c
index 355c3ca4f6e3529307dcc3393d7ea08d071e1441..241b3f6a5b053e489ef7362e93887313dac7a57a 100644
(file)
--- 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
*/