summaryrefslogtreecommitdiff
path: root/src/ao_btm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-05-06 23:12:47 -0700
committerKeith Packard <keithp@keithp.com>2011-05-06 23:12:47 -0700
commit66bdf0e066bc0bb7a326a6c2a9c88b69e5c1be66 (patch)
tree11fcb2c16c3f61af78cf86be9dad01794032afb4 /src/ao_btm.c
parent8be559baa979c15e78f8dba7879b383dbe3936d3 (diff)
altos: clear CPU port 1 interrupt flag when handled
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_btm.c')
-rw-r--r--src/ao_btm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ao_btm.c b/src/ao_btm.c
index 172004e9..a9306c10 100644
--- a/src/ao_btm.c
+++ b/src/ao_btm.c
@@ -257,6 +257,9 @@ ao_btm_isr(void)
__interrupt 15
#endif
{
+#if BT_LINK_ON_P1
+ P1IF = 0;
+#endif
if (BT_PIFG & (1 << BT_LINK_PIN_INDEX)) {
ao_btm_check_link();
ao_wakeup(&ao_btm_connected);