Subject: Re: RFC: General purpose "general purpose i/o pin" framework
To: Herb Peyerl , Jason R Thorpe <thorpej@wasabisystems.com>
From: Witold J. Wnuk <witek@wnuk.eu.org>
List: tech-kern
Date: 08/14/2002 09:28:24
On Tuesday 13 August 2002 12:36, Herb Peyerl wrote:
>
> The icing on the cake would be some sort of uploadable filter language
> that can define a state machine implemented by the kernel. Then it'd
> be a no-brainer to build an SPI filter... Or, say, a BDM filter that
> gets attached to the PC Parallel port GPIO driver.  Shouldn't be
> too hard to put a vhdl parser in the kernel. :-)

Something like /dev/bpf program interpreter but more fool proof... Ability to, 
for example, reliably program all these in-circuit-programmable 
microcontrollers using parallel port would certainly be welcomed by 
hobbyists.

Alternatively - a /dev/music-like sequencer device (with additional pin 
transitions recording and/or timed sampling capability) should suffice in 
most cases and perhaps would be little easier to implement.

How to get timing more precise than callout or tsleep in NetBSD kernel?


Uploadable programs could also (more or less) solve interrupt problem - they 
would be always handled in kernel. This means that Jason could forget about 
them in first phase (the basic functionality phase - sufficient for 
everything but more complicated protocols).


Greetings,

	Witold J. Wnuk