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 172004e9c6aae746f0b30b64201c249e8ba1a57b..a9306c101f715c40b703e39900007c837abf3100 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 dd7521525f4a08da5e833296e5afb917297bdc6a..e4b7938d8e85215fdabfc37be02b0e3c9e1386cb 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);