altos: clear CPU port 1 interrupt flag when handled
[fw/altos] / src / ao_btm.c
index 490b2667e3c8a78eb412b020f204f59e6c1ad272..a9306c101f715c40b703e39900007c837abf3100 100644 (file)
@@ -253,7 +253,13 @@ ao_btm_check_link() __critical
 
 void
 ao_btm_isr(void)
+#if BT_LINK_ON_P1
+       __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);