altos: Switch ao_rssi.c __xdata to __pdata
[fw/altos] / src / ao_usb.c
index ece6756a030c05bd104e1507a78879bafd54acac..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);
@@ -59,8 +58,10 @@ ao_usb_isr(void) __interrupt 6
        if (USBCIF & USBCIF_RSTIF)
                ao_usb_set_interrupts();
 #if HAS_BTM
+#if BT_LINK_ON_P2
        ao_btm_isr();
 #endif
+#endif
 }
 
 struct ao_usb_setup {