On Wednesday 28 March 2007 23:18, Kirk Wallace wrote:
> I just wanted a simple SPI device to talk to, but also have something
> useful when my lathe grows up.
> > That being said, once you got the bit-banging driver worked out it would
> > be useful for many applications.

<snip>
> I did find this driver:
>
> http://www.paul.de/downloadables/#spi-driver
>
> and learned allot from the documentation and the source. Worth several
> days (for me at least)

Reasonably clean and readable code. Demonstrates several basic techniques for 
a driver without being convoluted - Adapting to compile on 2.6 series kernels 
is but a few minutes work and consists of minor changes.. Just watch out if 
you try to bit-bang more than a few bytes at a time. Each inb/outb 
instruction takes ~1uSec (on a standard parport), and the computer can do 
nothing during this period.

--

Paul.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to