gpio man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

GPIO(3)								       GPIO(3)

NAME
       gpio - access to GPIO registers

SYNOPSIS
       bind -a #G /dev

       /dev/gpioclear
       /dev/gpioctl
       /dev/gpioedge
       /dev/gpioset
       /dev/gpiostatus

DESCRIPTION
       The  GPIO  interface  serves a one-level directory with five files that
       give access to the GPIO registers in the SA1100.	 See the SA1100	 hand‐
       book for details of the function of the various registers.

       The control file gpioctl accepts commands to set individual bits in the
       edge detect registers.  Each control message has three  space-separated
       fields:

	      reg pin value

       where  reg  is a single character denoting a register, pin a bit within
       it, and val the value (0 or 1) for that bit.   Valid  choices  for  reg
       are: d (GPDR), r (GRER), f (GFER), and a (GAFR).	 For example, the con‐
       trol message

	      d 10 1

       sets bit 10 (following the handbook's bit-numbering conventions) in the
       GPIO pin direction register GPDR.

       The  read-only file gpiostatus shows the names and values (in hexadeci‐
       mal) of all GPIO registers.

       The remaining data files allow bits to be read  by  Sys->read  requests
       and set by Sys->write requests.	When read, each file returns the value
       of a given register as a single 8 digit hexadecimal number: gpioset and
       gpioclear both give the value of the level register, GPLR; and gpioedge
       gives the value of the edge dectect register, GEDR.  Each write request
       should  present a single number in textual form, which is assumed to be
       hexadecimal by default.	The value  is  written	to  a  GPIO  register:
       gpioset	corresponds  to	 GPSR, gpioclear corresponds to GPCR, and gpi‐
       oedge corresponds to GEDR.

SOURCE
       /os/sa1100/devgpio.c

				    SA1100			       GPIO(3)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net