From 7bdd2635793ae0e2e7e12841c96660fd391161b3 Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 18 Dec 2006 15:18:19 +0000 Subject: - 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 --- firmware/src/os/pio_irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/src') 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; } -- cgit v1.2.3