ts-7000
[Top] [All Lists]

Re: [ts-7000] SPI Interrupt Handler

To:
Subject: Re: [ts-7000] SPI Interrupt Handler
From: David Hawkins <>
Date: Thu, 10 May 2007 10:11:36 -0700
grady_sean wrote:
> Hello all, I have been trying to compile a kernel with RTAI support
> but am having issues. I am wondering if I am barking up the wrong tree.
> 
> All I need to do is write a SPI driver to recieve data and shove it
> somewhere, like a flat text file, for later processing. 
> 
> I thought I would need to hook into the SPI RX interrupt to do this,
> and that is how I found out about the RTAI API.
> 
> However, I wonder if I am over-complicating things?
> 
> In the files section, I found 'gps_pps.tgz' and it does not use the
> RTAI API calls.
> 
> They include <linux/interrupt.h> among other things, and appear to
> call 'request_irq()' among other things to manipulate.
> 
> Does anyone have any guidance or advice on which approach I should be
> taking? 

Advice; don't use real-time until you determine you need it.

Go look at the sample drivers at;

http://www.ovro.caltech.edu/~dwh/correlator/cobra_docs.html
http://www.ovro.caltech.edu/~dwh/correlator/pdf/LNX-723-Hawkins.pdf
http://www.ovro.caltech.edu/~dwh/correlator/software/driver_design.tar.gz

you'll find a simple_irq driver in there you can test
on a parallel port of a PC. It'll be pretty easy to
port to a TS. The code has been tested on x86 and
a PowerPC, so most of the cross-compilation should be ok.

The only problem is that I wrote the drivers for the
2.6 kernel.

But I think the simple drivers use only functions that are
common to the 2.4 and 2.6 APIs.

If you have trouble, let me know, I have 2.4 kernel samples
around.

I'm playing with a TS-7300 in my spare time, and will get onto
writing a set of driver templates that work on the TS board.

Cheers,
Dave





 
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