[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Alexander Yurchenko <grange_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Thu, 3 Jun 2004 13:13:25 -0600 (MDT)
CVSROOT: /cvs
Module name: src
Changes by: grange_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2004/06/03 13:13:24
Added files:
usr.sbin/gpioctl: Makefile gpioctl.8 gpioctl.c
Log message:
gpioctl -- program to control GPIO devices.
The gpioctl program allows to manipulate GPIO devices pins
Quick start for the Soekris net4801 users:
# gpioctl -c 20 out pp
# gpioctl 20 1
This will turn on the red error led.
If you want to use JP5 I/O pins, just use the /dev/gpio1 device.
Quick start for the PC Engines WRAP.1C users:
# gpioctl 40
This will read the state of the button (0 means pressed).
# gpioctl -c 2 pp out
This will turn the first led on, to turn off write 1 to the pin,
it's reversed. For the second and the third leds use pins 3 and 18.
ok deraadt@
Visit your host, monkey.org