On 12/23/2011 01:38 AM, Terry Fryar wrote:
> Using Xenomai 2.60 with 2.6.38 omap kernel on beagleboard xm.  
>  
> Trying to use a GPIO pin as an interrupt and catch this in a xenomai
> userspace program.  Got the GPIO132 pin set as an input and is working fine.
> I guess I'll need to set the irq enable register on the omap cpu to enable
> it to generate irqs.  Now...what irq number do I use in the xenomai
> rt_intr_create() function call??  I'm not sure how the omap gpio interrupts
> are mapped to the linux kernel/xenomai stuff??  Can I use what's in the
> arch/arm/plat-omap/include/plat/irqs.h header file?  It appears that each
> bank of GPIO pins has it's own interrupt number??

Xenomai uses the same interrupt numbers as linux. But rt_intr_create is
deprecated in user-space, you should instead write a driver using the
rtdm skin. The enable bit is handled by xenomai when you request the irq
at xenomai level.

-- 
                                            Gilles.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to