From: "Terry Fryar" References: <56F449AE83D74177BAC5887692E0EF55@domain.hid> <4EF44DB9.9000609@domain.hid> In-Reply-To: <4EF44DB9.9000609@domain.hid> Date: Fri, 23 Dec 2011 08:04:34 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Interrupt numbers List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Gilles Chanteperdrix' Cc: xenomai@xenomai.org Thanks Gilles!! -----Original Message----- From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org] Sent: Friday, December 23, 2011 3:45 AM To: Terry Fryar Cc: xenomai@xenomai.org Subject: Re: [Xenomai-help] Interrupt numbers 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.