Subject: Re: RFC: General purpose "general purpose i/o pin" framework
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: None <mcmahill@mtl.mit.edu>
List: tech-kern
Date: 08/13/2002 05:51:04
On Mon, 12 Aug 2002, Jason R Thorpe wrote:
> Folks...
>
> Soon I'm going to start work on a generic interface for manipulating
> GPIO pins. I'm still trying to figure out exactly what it should have,
> but let me give you an idea of what I'm thinking about so far:
>
> echo '1' > /dev/gpio0 # turn pin on
> echo '0' > /dev/gpio0 # turn pin off
> echo 't' > /dev/gpio0 # toggle pin
how about a pulse pin? I'm thinking of a case where you need to load
something serially so you set a value on 1 pin and then pulse another
which acts as a clock.
Is there anyway to provide some specific timing on these pins? For
example I think the '1-wire' interface used by some Dallas Semiconductor
chips (and others) needs some very specific timing of its pulses.
-Dan