2009-02-03 12:19:35 GPIO level sensitive interrupt in Xenomai RTDM
Michael McTernan (UNITED KINGDOM)
Message: 68788
Hi,
I've got a very small kernel driver that uses a level sensitive GPIO to inform a user space app when to run. That all works fine.
Having ported the app to run with Xenomai (seemingly very easy - nice!), I'm now trying to port this to a real-time driver using Xenomai.
From the Xenomai docs I can see how to attach to the interrupt and do all the module stuff, but there isn't much in the way of configuring or reserving the GPIO as would normally occur.
I'm wondering if I should be using the standard Linux APIs (gpio_to_irq(PIN_IRQ), request_irq(), etc...) in the RTDM driver prior to attaching the real-time interrupt handling?
Regards,
Mike
QuoteReplyEditDelete
2009-02-03 12:30:22 Re: GPIO level sensitive interrupt in Xenomai RTDM
Mike Frysinger (UNITED STATES)
Message: 68791
i dont think xenomai has an api to properly allocate resources, let alone sync with the kernel. so you'd probably want to call the linux api to rerserve the resource with the kernel.
as for the IRQ translation parts, you'd probably want to ask on the xenomai mailing lists ...
QuoteReplyEditDelete
2009-02-03 12:35:30 Re: GPIO level sensitive interrupt in Xenomai RTDM
Michael McTernan (UNITED KINGDOM)
Message: 68793
Okay - thanks for the quick reply. I'll experiment a bit more since your suggestion follows what I'm thinking and then try the Xenomai list.
Thanks,
Mike