Interrupt Service Routine

I haven’t written an ISR since the days of DOS. Can someone point to
some
resources for doing this in QNX?

I have two Diammond MM-32 PC-104 A/D boards that I need to recieve
interrupts
from. I have no idea how to do this in qnx.

-Brandon

Brandon Fosdick wrote:

I haven’t written an ISR since the days of DOS. Can someone point to
some
resources for doing this in QNX?

I have two Diammond MM-32 PC-104 A/D boards that I need to recieve
interrupts
from. I have no idea how to do this in qnx.

There is a simple example in the qnx_hint_attach documentation.


To succeed in this world it is not enough to be stupid; you must also be
well-mannered. - Voltaire

In article <396F26D4.C1CAAB81@glue.umd.edu>, Brandon says…

I haven’t written an ISR since the days of DOS. Can someone point to
some
resources for doing this in QNX?

I have two Diammond MM-32 PC-104 A/D boards that I need to recieve
interrupts
from. I have no idea how to do this in qnx.

pid_t far handler()
{
// no system calls
// no floating point
// no ‘ring 0’ instructions

// your code (inp, outp … a.s.o )
return(0) or return(proxy)
}


qnx_hint_attach(your_IRQ, &handler, my_ds()) :wink:

For further details → RTFM


Regards

Armin