The TS-7800 is capable of having user-space interrupts. This will allows you
to write a generic C application that can tell the kernel that you are waiting
on an actual real-world interrupt. In essence your application becomes the
bottom half of an ISR once the IRQ triggers as the interrupt driver tells the
scheduler that your application is now ready to run. Your response time is
then dependent on the kernel scheduler and your application's scheduling
algorithm and priority.
See the man page for select() for information on how to set up your application
to deal with user-space IRQs. You will want to use select() to try to read
/proc/irq/78/irq until it no longer blocks for IRQ 14. Real IRQ number ==
PC/104 IRQ number + 64.
See the man page for sched_setscheduler() for information on setting the
algorithm and priority for your process.
-Kris Bahnsen
Technologic Systems
--- In "tommessum" <> wrote:
>
>
>
> Can anybody point me at some code and/or application notes to enable and use
> the user interrupt pins with Linux C? (eg IRQ14)
>
> I am aware that special drivers etc may be needed, and have used interrupts
> in stand alone programs before. I just want to get hold of some sample code
> and specific information on how to use it etc.
>
> Thanks
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|