summaryrefslogtreecommitdiffstats
path: root/usr.sbin/gpioctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add bcmgpio to the gpio manpage and install gpioctl manpage on arm64 toomartin2020-05-161-2/+2
| | | | OK kettenis@
* correct flags example; from artturi almjmc2018-03-121-6/+4
| | | | | | ok sthen knock out a dud Tn while here
* Build gpioctl(8) and hotplugd(8) on arm64.jsg2017-01-231-3/+4
| | | | ok patrick@
* bzero -> memset. No binary change.mmcc2015-12-261-8/+8
| | | | ok tb@
* add some missing .Cm macros and drop some redundant .Bk while hereschwarze2015-09-111-13/+20
|
* +.An -nosplitjmc2013-11-201-2/+3
|
* enable gpioctl(8) for armv7, and add associated devices on armv7/sunxi.aalm2013-10-271-3/+4
| | | | ok jasper@, patrick@, rapha@
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-4/+4
|
* - sync usage() and SYNOPSISjmc2011-10-042-24/+26
| | | | | | | - document "flag", for I2C devices - "pin" is not optional ok matthieu
* Add a 'flag' locator to gpioiic(4), and define a first flagmatthieu2011-10-032-13/+22
| | | | | | value to swap the SDA and SCL pins assigment during attach. Mostly from work with mbalmer@NetBSD. ok miod@
* do not use gcc -W options which you do not understandderaadt2010-07-201-2/+2
|
* build on amd64 alsojsg2009-08-101-3/+3
| | | | ok deraadt@
* need set argument now in this example; ok mbalmer@stevesk2008-12-051-3/+3
|
* clarify GPIO device specification. with input from jmc; ok mbalmer@ jmc@stevesk2008-12-031-1/+9
|
* delete unused prototype, from lint; ok mbalmer@stevesk2008-12-031-2/+1
|
* there is no longer a default GPIO device; ok mbalmer@ jmc@stevesk2008-12-031-8/+2
|
* Fix output.mbalmer2008-11-301-2/+2
|
* Allow the words "on", "off", or "toggle" to be used instead of thembalmer2008-11-292-9/+29
| | | | numerical values when writing to a pin; fix an error message.
* Reorder variables, add my copyright.mbalmer2008-11-261-8/+6
|
* Use the new gpio(4) semantics and change the command line syntax to ambalmer2008-11-262-167/+203
| | | | | | | | | | | more readable and straightforward format. Note that there is no longer a default GPIO device, but it has to be sepcified on the command line always (and as Theo mentioned, newfs also does not default to /dev/sd0a...) You must do a 'make includesi' in /usr/src before building this command or before your next system build. ok uwe@
* - tweak previousjmc2008-11-242-54/+51
| | | | - kill .Tn
* Add and document -A and -D options to attach or detach devices atmbalmer2008-11-242-6/+103
| | | | | | runtime to a gpio bus. ok uwe, drahn
* GPIO pins can be programmed to invert input or output on some devices.mbalmer2007-11-172-2/+8
| | | | | | Introduce new flags, GPIO_PIN_INVIN and GPIO_PIN_INVOUT, for this. ok grange
* GPIO improvements:jmc2007-11-171-5/+2
| | | | | | | | | - 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...
* pull-down (GPIO_PIN_PULLDOWN) is a valid flags for some GPIO devices,mbalmer2007-11-172-3/+6
| | | | | | e.g. the AMD Geode C5536 GPIO. ok grange
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* use strtonum() to avoid out of range values, way simpler than thederaadt2007-03-181-6/+7
| | | | 12-line song and dance that standard functions need; bret.lambert@gmail
* for macppc too; from ghz@darkdata.orgderaadt2006-11-291-2/+2
|
* amazing how far a typo of mine (CFLAGS vs CLFAGS) from early 2004 spreadhenning2006-07-251-2/+2
| | | | | (and how long it went unnoticed) From: Alexey Dobriyan <adobriyan@gmail.com>
* Unbreak; noticed by evol@online.ptt.ru.grange2005-11-171-2/+2
|
* no need for -h, any illegal option is finederaadt2005-11-162-11/+7
|
* move this page to a standard options list;jmc2005-11-161-38/+37
| | | | | requested by deraadt@ ok grange@
* gpioctl can work on macppc tooderaadt2005-11-161-2/+2
|
* tweaks from wiz@netbsdjmc2005-09-271-4/+3
|
* Document -q and -h options, noticed by Matt Peterson <matt@eff.org>.grange2004-12-021-1/+10
| | | | With a help from jmc@.
* Fix typo (termal -> thermal). From bob at cemetery dot homeunix dot org.aaron2004-11-031-2/+2
|
* .Xr elansc(4) here toogrange2004-09-211-1/+2
|
* spacingderaadt2004-08-081-4/+4
|
* various tweaks;jmc2004-06-041-33/+37
| | | | ok grange@
* gpioctl -- program to control GPIO devices.grange2004-06-033-0/+413
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@