All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] IRQ managment with RTDM
@ 2007-10-04  9:54 Perrine Martignoni
  2007-10-04 22:06 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Perrine Martignoni @ 2007-10-04  9:54 UTC (permalink / raw)
  To: xenomai-help

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

Hello,

I would like to know how we configure interrupts in falling edge or rising
edge with RTDM.
I have to rewrite a linux driver in RTDM module and I don't find the
equivalent of IRQF_TRIGGER_FALLING.

Best Regards
Perrine

[-- Attachment #2: Type: text/html, Size: 254 bytes --]

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

* Re: [Xenomai-help] IRQ managment with RTDM
  2007-10-04  9:54 [Xenomai-help] IRQ managment with RTDM Perrine Martignoni
@ 2007-10-04 22:06 ` Jan Kiszka
  2007-10-05  7:18   ` Perrine Martignoni
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2007-10-04 22:06 UTC (permalink / raw)
  To: Perrine Martignoni; +Cc: xenomai-help

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Perrine Martignoni wrote:
> Hello,
> 
> I would like to know how we configure interrupts in falling edge or rising
> edge with RTDM.
> I have to rewrite a linux driver in RTDM module and I don't find the
> equivalent of IRQF_TRIGGER_FALLING.

There is no such thing in RTDM. You can use set_irq_type() for this,
like some Linux drivers do as well. But the cleaner approach indeed seem
to be to let RTDM manage the flags (and check if there conflicts in case
of shared IRQs). Will put it on the todo list, but not with a high prio.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-help] IRQ managment with RTDM
  2007-10-04 22:06 ` Jan Kiszka
@ 2007-10-05  7:18   ` Perrine Martignoni
  0 siblings, 0 replies; 3+ messages in thread
From: Perrine Martignoni @ 2007-10-05  7:18 UTC (permalink / raw)
  To: xenomai-help

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

I can use set_irq_type() just before rtdm_irq_request() ?
I don't use shared IRQs, so I wouldn't have any problem.

On 10/5/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>
> Perrine Martignoni wrote:
> > Hello,
> >
> > I would like to know how we configure interrupts in falling edge or
> rising
> > edge with RTDM.
> > I have to rewrite a linux driver in RTDM module and I don't find the
> > equivalent of IRQF_TRIGGER_FALLING.
>
> There is no such thing in RTDM. You can use set_irq_type() for this,
> like some Linux drivers do as well. But the cleaner approach indeed seem
> to be to let RTDM manage the flags (and check if there conflicts in case
> of shared IRQs). Will put it on the todo list, but not with a high prio.
>
> Jan
>
>
>

[-- Attachment #2: Type: text/html, Size: 1069 bytes --]

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

end of thread, other threads:[~2007-10-05  7:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04  9:54 [Xenomai-help] IRQ managment with RTDM Perrine Martignoni
2007-10-04 22:06 ` Jan Kiszka
2007-10-05  7:18   ` Perrine Martignoni

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.