altos: clear CPU port 1 interrupt flag when handled
authorKeith Packard <keithp@keithp.com>
Sat, 7 May 2011 06:12:47 +0000 (23:12 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 May 2011 06:12:47 +0000 (23:12 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_btm.c
src/ao_usb.c

index 172004e..a9306c1 100644 (file)
@@ -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);
index dd75215..e4b7938 100644 (file)
@@ -46,7 +46,6 @@ void
 ao_usb_isr(void) __interrupt 6
 {
        USBIF = 0;
-       IRCON2 &= ~IRCON2_USBIF;
        ao_usb_iif |= USBIIF;
        if (ao_usb_iif & 1)
                ao_wakeup(&ao_usb_task);