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/
|