I am somewhat new to embedded Linux development and have a build
environment question.
I am using the TS-7250 board. What I want to do is to have it
connected to another micro that will send it data via the SPI.
I am using Cygwin with the provided crosstool chain (from the provided
CD) to do development. I have written a small piece of test code that
enables the SPI and dumps out some dummy data. I am convinced this
works by placing the scope on the SPI outs and seeing activity there.
Now, I need to write an ISR to catch the SPI RX interrupt and take the
input data from the DR and store it somewhere. (At least, that is what
I think I need to do?)
So my main question is regarding the interrupt and the ISR handling.
I have seen that I need to use the RTAI function calls to do this but
am not sure how to build this. I untarred the RTAI stuff in my cygwin
directory. However it appears that I need to perform some sort of
build or configuration on the RTAI stuff before I can build any of my
code that calls these functions.
Is it possible to develop in this fashion, where I compile my code
using RTAI calls on my PC and then transfer the compiled binary over
and run it?
Also, I am confused on what number the interrupt is. I see the chart
from the EP9301 PDF, is the number listed there the one I can pass
into the RTAI API function call, or is there some sort of translation
I need to be aware of?
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/
|