On Sun, Dec 19, 1999 at 11:35:20AM -0500, 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?)
> 
> -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);

This only works for devices that are mapped with ioremap().

> or 
> outb_p(data,badr);

This is only for legacy ISA and PCMCIA devices.  And outb() should be
used instead of outb_p(), unless you really need it.

> or 
> *badr=data;

This is wrong in all cases.


> I have source code with all examples and I would to know what is faster and
> what is the "regular" good method?



dave...

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