On Fri, Jul 30, 2010 at 8:11 PM, Breton M. Saunders
<m("ntlworld.com","breton.saunders");">>
wrote:
It isn't the code style that worries me.
It is the myth that one can write a reliable driver (real-time
or not)
as a user mode program that concerns me greatly.
There is a reason why real drivers run inside the kernel, and do not
use peekpoke.h!
I'll mildly disagree with this - using Linux 2.6.33.x and the
-RT patches and high-res timers, I have a rock-solid flicker-free
multiplexed display hanging off the LCD port of a ts7250, being driven
from entirely user space, using mmap'd I/O. By "rock solid" I mean
while playing mp3s, dropbear sessions, etc. The scheduling overhead is
a bit of a killer, I grant...
... but I have to wonder if the OP can use the kernel's SPI
drivers... it is not hard to get a recent kernel working on the ts72xx
boards, just consult the archives.