All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Niklaus Burren" <niklaus.burren@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Registering Interrupt Handler [Scanned]
Date: Thu, 14 Dec 2006 13:35:16 +0100	[thread overview]
Message-ID: <45814504.7050905@domain.hid> (raw)

Hello

I try to register an interrupt handler for an externel interrupt(GPIO 
105) in a xenomai (2.2.2) kernel module on a ARM processor (PXA 270).
I create a interrupt object with the rt_intr_create() function without 
an error. After that I enable the interrupt with rt_intr_enable(). When 
I run the kernel module on the PXA270 board and put a square signal to 
the GPIO 105 pin the interrupt handler is never called.

// Interrupt Handler
int int_handler(struct xnintr *intr)
{
    printk("Interrupt detected\n");
    return RT_INTR_HANDLED;
}

----

// Enalbe Interrupt in init_module()
err = rt_intr_create(&intr_desc, "GPIO_INT", 10, &int_handler, NULL, NULL);

rt_intr_enable(&intr_desc);

On PXA270 all externel interrupts on GPIO's have the same interrupt 
number (10). Is that a problem? When I get the pin status from the pin 
level register GPLR3 I can detect the square signal at the pin. But the 
interrupt handler function int_handler() is never called.

Is there any other initialization that I had to do?

Kind Regards

Niklaus Burren



             reply	other threads:[~2006-12-14 12:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14 12:35 Niklaus Burren [this message]
2006-12-14 13:32 ` [Xenomai-help] Registering Interrupt Handler [Scanned] Gilles Chanteperdrix
     [not found]   ` <45825668.3030703@domain.hid>
2006-12-15 10:09     ` Gilles Chanteperdrix
     [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=45814504.7050905@domain.hid \
    --to=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.