From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Niklaus Burren <niklaus.burren@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Registering Interrupt Handler [Scanned]
Date: Fri, 15 Dec 2006 11:09:53 +0100 [thread overview]
Message-ID: <45827471.8000606@domain.hid> (raw)
In-Reply-To: <45825668.3030703@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ipipe-trace-pxa-irq-demux.diff --]
[-- Type: text/x-patch; name="ipipe-trace-pxa-irq-demux.diff", Size: 666 bytes --]
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);
next prev parent reply other threads:[~2006-12-15 10:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 12:35 [Xenomai-help] Registering Interrupt Handler [Scanned] Niklaus Burren
2006-12-14 13:32 ` Gilles Chanteperdrix
[not found] ` <45825668.3030703@domain.hid>
2006-12-15 10:09 ` Gilles Chanteperdrix [this message]
[not found] ` <45828192.4020105@domain.hid>
2006-12-15 17:07 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45827471.8000606@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=niklaus.burren@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.