ts-7000
[Top] [All Lists]

[ts-7000] Re: TS7800 User interrupt (IRQ11-14) in Debian + C

To:
Subject: [ts-7000] Re: TS7800 User interrupt (IRQ11-14) in Debian + C
From: "Kris" <>
Date: Tue, 07 Dec 2010 17:05:39 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU