Niklaus Burren wrote:
> Hello Gilles
> 
> Thank you for your tip. I use now this makro in the rt_intr_create() 
> function. Unfortunately it has no effect. The function int_handler() is 
> never called when I put a square signal to the correct GPIO pin.
> 
> Is there anything else I had to do?

Could you try applying the following patch and tell me what gets printed
when you put the square signal on the GPIO pin ?

-- 
                                                 Gilles Chanteperdrix
Index: arch/arm/mach-pxa/irq.c
===================================================================
--- arch/arm/mach-pxa/irq.c	(révision 2407)
+++ arch/arm/mach-pxa/irq.c	(copie de travail)
@@ -236,10 +236,14 @@
 		i = 4;
 #endif /* PXA_LAST_GPIO >= 96 */
 		for (; i; i--) {
+			printk("mask[%d] = 0x%08x\n", i - 1, mask[i - 1]);
 			loop |= mask[i - 1];
 			while (mask[i - 1]) {
 				irq = fls(mask[i - 1]) - 1;
 				mask[i - 1] &= ~(1 << irq);
+				printk("demux irq IRQ_GPIO(%d): %d\n",
+				       (i - 1) * 32 + irq,
+				       IRQ_GPIO((i - 1) * 32 + irq));
 				irq = IRQ_GPIO((i - 1) * 32 + irq);
 
 				__ipipe_handle_irq(irq, regs);
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to