Up to [local] / src / usr.sbin / gpioctl
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.25 / (download) - annotate - [select for diffs], Mon Mar 12 12:52:14 2018 UTC (6 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
HEAD
Changes since 1.24: +4 -6 lines
Diff to previous 1.24 (colored)
correct flags example; from artturi alm ok sthen knock out a dud Tn while here
Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 11 21:19:34 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.23: +20 -13 lines
Diff to previous 1.23 (colored)
add some missing .Cm macros and drop some redundant .Bk while here
Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 20 22:34:13 2013 UTC (10 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)
+.An -nosplit
Revision 1.22 / (download) - annotate - [select for diffs], Tue Jul 16 11:13:33 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)
use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@
Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 4 07:19:13 2011 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.20: +24 -22 lines
Diff to previous 1.20 (colored)
- sync usage() and SYNOPSIS - document "flag", for I2C devices - "pin" is not optional ok matthieu
Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 3 20:24:51 2011 UTC (12 years, 8 months ago) by matthieu
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)
Add a 'flag' locator to gpioiic(4), and define a first flag value to swap the SDA and SCL pins assigment during attach. Mostly from work with mbalmer@NetBSD. ok miod@
Revision 1.19 / (download) - annotate - [select for diffs], Fri Dec 5 15:45:53 2008 UTC (15 years, 6 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
need set argument now in this example; ok mbalmer@
Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 3 20:40:56 2008 UTC (15 years, 6 months ago) by stevesk
Branch: MAIN
Changes since 1.17: +10 -2 lines
Diff to previous 1.17 (colored)
clarify GPIO device specification. with input from jmc; ok mbalmer@ jmc@
Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 3 16:26:43 2008 UTC (15 years, 6 months ago) by stevesk
Branch: MAIN
Changes since 1.16: +2 -8 lines
Diff to previous 1.16 (colored)
there is no longer a default GPIO device; ok mbalmer@ jmc@
Revision 1.16 / (download) - annotate - [select for diffs], Sat Nov 29 09:19:25 2008 UTC (15 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.15: +13 -2 lines
Diff to previous 1.15 (colored)
Allow the words "on", "off", or "toggle" to be used instead of the numerical values when writing to a pin; fix an error message.
Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 26 14:56:10 2008 UTC (15 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.14: +51 -61 lines
Diff to previous 1.14 (colored)
Use the new gpio(4) semantics and change the command line syntax to a 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@
Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 24 15:27:52 2008 UTC (15 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.13: +50 -53 lines
Diff to previous 1.13 (colored)
- tweak previous - kill .Tn
Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 24 14:11:58 2008 UTC (15 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.12: +34 -1 lines
Diff to previous 1.12 (colored)
Add and document -A and -D options to attach or detach devices at runtime to a gpio bus. ok uwe, drahn
Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 17 16:55:05 2007 UTC (16 years, 6 months ago) by mbalmer
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)
GPIO pins can be programmed to invert input or output on some devices. Introduce new flags, GPIO_PIN_INVIN and GPIO_PIN_INVOUT, for this. ok grange
Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 17 10:19:20 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.10: +3 -6 lines
Diff to previous 1.10 (colored)
GPIO improvements: - 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...
Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 17 09:05:23 2007 UTC (16 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)
pull-down (GPIO_PIN_PULLDOWN) is a valid flags for some GPIO devices, e.g. the AMD Geode C5536 GPIO. ok grange
Revision 1.9 / (download) - annotate - [select for diffs], Thu May 31 19:20:23 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
convert to new .Dd format;
Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 16 16:40:28 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.7: +3 -5 lines
Diff to previous 1.7 (colored)
no need for -h, any illegal option is fine
Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 16 12:44:49 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.6: +37 -38 lines
Diff to previous 1.6 (colored)
move this page to a standard options list; requested by deraadt@ ok grange@
Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 27 10:28:56 2005 UTC (18 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored)
tweaks from wiz@netbsd
Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 2 05:11:40 2004 UTC (19 years, 6 months ago) by grange
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.4: +10 -1 lines
Diff to previous 1.4 (colored)
Document -q and -h options, noticed by Matt Peterson <matt@eff.org>. With a help from jmc@.
Revision 1.4 / (download) - annotate - [select for diffs], Wed Nov 3 15:08:10 2004 UTC (19 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
Fix typo (termal -> thermal). From bob at cemetery dot homeunix dot org.
Revision 1.3 / (download) - annotate - [select for diffs], Tue Sep 21 09:24:17 2004 UTC (19 years, 8 months ago) by grange
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)
.Xr elansc(4) here too
Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 4 14:00:00 2004 UTC (20 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.1: +37 -33 lines
Diff to previous 1.1 (colored)
various tweaks; ok grange@
Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 3 19:13:24 2004 UTC (20 years ago) by grange
Branch: MAIN
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@