On Sat, 22 Oct 2005, briannewberry2 wrote:
> I'm trying to implement a fast SPI slave port for data logging on a TS-
> 7200. The slave port is up and running fine, but I get overruns every
> so often because the processor is being stolen away from my code and
> running what I assume are OS processes. This is undesireable for my
> particular application. What I want to do is turn off interrupts while
> I'm receiving, but I don't think that is possible, if it is does anyone
> know how?
>
> What I was thinking of doing as an alternative is to write an interrupt
> service routine for my code that will make it high priority and preempt
> all the other interrupts that are currently giving me fits. I'm having
> trouble wading through the code that is on this site and it seems bulky
> for what I'm trying to do. Has anyone implemented a simple interrupt
> like this and if so can you post or send me some example code.
>
> Thanks for any help you can give me
Interrupts aren't a userspace issue - they are akernel issue,
you need to write yourself a kernel module to handle the SPI stuff and
interface to a user application.
Google for introduction to linux kernel module writing or somesuch.
It's not specific to the ts7200.
Jim
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|