projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Use PIO(6) on BTM to monitor BT connection. Fix BTM init.
[fw/altos]
/
src
/
ao_usb.c
diff --git
a/src/ao_usb.c
b/src/ao_usb.c
index b4e3f1fe6aa3364bd7925458d6e58af28f4922e8..ece6756a030c05bd104e1507a78879bafd54acac 100644
(file)
--- a/
src/ao_usb.c
+++ b/
src/ao_usb.c
@@
-46,6
+46,7
@@
void
ao_usb_isr(void) __interrupt 6
{
USBIF = 0;
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);
ao_usb_iif |= USBIIF;
if (ao_usb_iif & 1)
ao_wakeup(&ao_usb_task);
@@
-57,6
+58,9
@@
ao_usb_isr(void) __interrupt 6
if (USBCIF & USBCIF_RSTIF)
ao_usb_set_interrupts();
if (USBCIF & USBCIF_RSTIF)
ao_usb_set_interrupts();
+#if HAS_BTM
+ ao_btm_isr();
+#endif
}
struct ao_usb_setup {
}
struct ao_usb_setup {