Stephane Bouchard wrote:
> 
> Hi,
> 
> I would like to know what choice must I do between there options for make
> better programming:
> 
> -Interrupt service routine / periodic real-time task (what is faster of
> make a controller with a A2D/D2A board? and can I use floating point
> operation with both method?)


If you have only a single real time thread of execution, an interrupt
service routine, without any scheduler will give you the best
performance (less jitter). You can use floating point but, you need to
make sure the floating point context is saved (there is a call to do
this ??, an example was posted a while ago).  Take a looked at COMEDI by
David Schleef that focussed on data aquisition drivers including
realtime (http://stm.lbl.gov/comedi/)


> 
> -What is the better method to write/read on a device : (see code examples)
> /* badr is a ptr uint8 on the base address of the device */
> writeb(data,badr);
> or
> outb_p(data,badr);
> or
> *badr=data;
> I have source code with all examples and I would to know what is faster and
> what is the "regular" good method?
> 

I think writeb is more portable ??


Regards, Stuart


--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to