projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8be559b
)
altos: clear CPU port 1 interrupt flag when handled
author
Keith Packard
<keithp@keithp.com>
Sat, 7 May 2011 06:12:47 +0000
(23:12 -0700)
committer
Keith 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
patch
|
blob
|
history
src/ao_usb.c
patch
|
blob
|
history
diff --git
a/src/ao_btm.c
b/src/ao_btm.c
index 172004e9c6aae746f0b30b64201c249e8ba1a57b..a9306c101f715c40b703e39900007c837abf3100 100644
(file)
--- a/
src/ao_btm.c
+++ b/
src/ao_btm.c
@@
-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);
diff --git
a/src/ao_usb.c
b/src/ao_usb.c
index dd7521525f4a08da5e833296e5afb917297bdc6a..e4b7938d8e85215fdabfc37be02b0e3c9e1386cb 100644
(file)
--- a/
src/ao_usb.c
+++ b/
src/ao_usb.c
@@
-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);