summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-12-18 15:18:19 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-12-18 15:18:19 +0000
commit7bdd2635793ae0e2e7e12841c96660fd391161b3 (patch)
treec934628dc1e97311db799893a904e24ef6b8e65f /firmware
parentf411c7b546bc531c038c8b1625fa2b7e22c10bb6 (diff)
- iterate over all PIO, not only starting from 27 ?!?
- add debug message when registering callback git-svn-id: https://svn.openpcd.org:2342/trunk@287 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware')
-rw-r--r--firmware/src/os/pio_irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/src/os/pio_irq.c b/firmware/src/os/pio_irq.c
index 5fb777a..098868c 100644
--- a/firmware/src/os/pio_irq.c
+++ b/firmware/src/os/pio_irq.c
@@ -42,7 +42,7 @@ void __ramfunc __pio_irq_demux(u_int32_t pio)
DEBUGPCRF("PIO_ISR_STATUS = 0x%08x", pio);
- for (i = 27; i < NR_PIO; i++) {
+ for (i = 0; i < NR_PIO; i++) {
if (pio & (1 << i) && pirqs.handlers[i])
pirqs.handlers[i](i);
if (pirqs.usbmask & (1 << i))
@@ -106,6 +106,7 @@ int pio_irq_register(u_int32_t pio, irq_handler_t *handler)
pio_irq_disable(pio);
AT91F_PIO_CfgInput(AT91C_BASE_PIOA, pio);
pirqs.handlers[num] = handler;
+ DEBUGPCRF("registering handler %p for PIOA %u", handler, num);
return 0;
}
personal git repositories of Harald Welte. Your mileage may vary