All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] GPIO Interrupts problem with RTDM
@ 2013-01-18 15:15 Pierre LE COZ
  2013-01-18 19:59 ` Gilles Chanteperdrix
  2013-01-18 22:11 ` Paul
  0 siblings, 2 replies; 26+ messages in thread
From: Pierre LE COZ @ 2013-01-18 15:15 UTC (permalink / raw)
  To: xenomai

Hi all,

I have simple program to manage the GPIO of my raspberry Pi using RTDM.

I use :
"rtdm_irq_request(& irq_exemple, num_irq, exemple_handler,
RTDM_IRQTYPE_SHARED | RTDM_IRQTYPE_EDGE, "MyProgram", NULL);"
in order to detect interrupts.

After repeated presses on a pushbutton linking my input GPIO to 3,3v, I run
:
# cat /proc/xenomai/irq
IRQ CPU0
3: 1134 [timer]
108: 0 MyProgram
259: 0 [virtual]

No interrupt is taken into account.

Please, does anyone can help?




PS : Without Xenomai, I can detect interrupts with the same set-up :

# cat /proc/interrupts
CPU0
3: 14053 ARMCTRL BCM2708 Timer Tick
52: 10 ARMCTRL BCM2708 GPIO catchall handler
65: 6 ARMCTRL ARM Mailbox IRQ
66: 0 ARMCTRL VCHIQ doorbell
75: 7942676 ARMCTRL dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
77: 148 ARMCTRL bcm2708_sdhci (dma)
83: 452 ARMCTRL uart-pl011
84: 1297 ARMCTRL mmc0
108: 10 GPIO MyProgram
Err: 0

To do so I use "request_irq(gpio_to_irq(RPI_GPIO_IN), rpi_gpio_2_handler,
IRQF_SHARED | IRQF_TRIGGER_RISING, THIS_MODULE->name, THIS_MODULE->name);"

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2013-02-13 12:40 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18 15:15 [Xenomai] GPIO Interrupts problem with RTDM Pierre LE COZ
2013-01-18 19:59 ` Gilles Chanteperdrix
2013-01-18 22:11 ` Paul
2013-01-18 23:47   ` Pierre LE COZ
2013-01-19  0:52     ` Paul
2013-01-19 10:41       ` Pierre LE COZ
2013-01-19 12:35         ` Paul
2013-01-19 15:46           ` Pierre LE COZ
2013-01-19 15:49             ` Gilles Chanteperdrix
2013-01-20  0:13             ` Paul
2013-01-20 13:50               ` Gilles Chanteperdrix
2013-01-22  3:06                 ` Paul
2013-01-22  7:51                   ` Gilles Chanteperdrix
2013-01-22  8:40                     ` Gilles Chanteperdrix
2013-01-23 12:14                   ` Gilles Chanteperdrix
2013-01-24 16:52                   ` Christophe Blaess
2013-01-24 17:12                     ` Paul
2013-01-24 17:38                       ` Christophe Blaess
2013-01-25  9:08                         ` Gilles Chanteperdrix
2013-01-31  2:11                           ` Paul
2013-01-31 19:45                             ` Gilles Chanteperdrix
2013-02-13 12:40                               ` Paul
2013-01-25  9:03                       ` Gilles Chanteperdrix
2013-01-28 12:29                         ` Paul
2013-01-28 17:22                           ` Gilles Chanteperdrix
2013-01-19 12:32   ` Gilles Chanteperdrix

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.