summaryrefslogtreecommitdiff
path: root/usr.sbin/gpioctl
AgeCommit message (Collapse)Author
2007-11-17GPIO pins can be programmed to invert input or output on some devices.Marc Balmer
Introduce new flags, GPIO_PIN_INVIN and GPIO_PIN_INVOUT, for this. ok grange
2007-11-17GPIO improvements:Jason McIntyre
- make "man -k gpio" work - gpioctl(8) should not try to list all gpio devices (it's why we have man -k) - gpio devices should have "GPIO" in their .Nd, and cross-reference gpio(4) and gpioctl(8) second set of fixes for gpio(4) itself coming from mbalmer...
2007-11-17pull-down (GPIO_PIN_PULLDOWN) is a valid flags for some GPIO devices,Marc Balmer
e.g. the AMD Geode C5536 GPIO. ok grange
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-18use strtonum() to avoid out of range values, way simpler than theTheo de Raadt
12-line song and dance that standard functions need; bret.lambert@gmail
2006-11-29for macppc too; from ghz@darkdata.orgTheo de Raadt
2006-07-25amazing how far a typo of mine (CFLAGS vs CLFAGS) from early 2004 spreadHenning Brauer
(and how long it went unnoticed) From: Alexey Dobriyan <adobriyan@gmail.com>
2005-11-17Unbreak; noticed by evol@online.ptt.ru.Alexander Yurchenko
2005-11-16no need for -h, any illegal option is fineTheo de Raadt
2005-11-16move this page to a standard options list;Jason McIntyre
requested by deraadt@ ok grange@
2005-11-16gpioctl can work on macppc tooTheo de Raadt
2005-09-27tweaks from wiz@netbsdJason McIntyre
2004-12-02Document -q and -h options, noticed by Matt Peterson <matt@eff.org>.Alexander Yurchenko
With a help from jmc@.
2004-11-03Fix typo (termal -> thermal). From bob at cemetery dot homeunix dot org.Aaron Campbell
2004-09-21.Xr elansc(4) here tooAlexander Yurchenko
2004-08-08spacingTheo de Raadt
2004-06-04various tweaks;Jason McIntyre
ok grange@
2004-06-03gpioctl -- program to control GPIO devices.Alexander Yurchenko
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@