[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] IT Handler
roux jean-denis wrote:
>
> Hi all
>
> I have a problem with the definition of the IT
> handler under RTAI...
>
> I have replaced the normal request : request_irq(
> ThisAdapter->PciFunctionZero.InterruptLine,ISRHdlr,SA_SHIRQ,"SBCS_Bridge",ThisAdapter);
>
> with : rt_free_global_irq(line1);
> rt_request_global_irq( line1,ISRHdlr);
> rt_pend_linux_irq(line1);
> where line1 = 5 (the interrupt line!)
>
> and changed also the normal Handler :
> void ISRHdlr(int irq ,void *dev_id,struct
> pt_regs*regs)
> onto:
> void ISRHdlr(void)
>
> The thing is that I declare this handler for 2 IRQ
> lines (5 and 9) because the driver manage that.
> The problem is that the Handler is NEVER
> called....Do you know why?
>
> Other question : Does the Irq under RTAI use the
> principle of bottom halves???
>
> Regards
> Jean-Denis ROUX
>
Have you done rt_enable(line1) after requesting it? RTAI does not
enable by default, see the parallel port example.
Ciao, Paolo.
- References:
- IT Handler
- From: roux jean-denis <rouxjaydee@yahoo.com>