Module Name: src
Committed By: tnn
Date: Sat Nov 2 18:56:41 UTC 2019
Modified Files:
src/share/man/man4: gpio.4
Log Message:
expand section on GPIOREAD
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man4/gpio.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/gpio.4
diff -u src/share/man/man4/gpio.4:1.33 src/share/man/man4/gpio.4:1.34
--- src/share/man/man4/gpio.4:1.33 Sat May 19 13:59:06 2018
+++ src/share/man/man4/gpio.4 Sat Nov 2 18:56:41 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: gpio.4,v 1.33 2018/05/19 13:59:06 thorpej Exp $
+.\" $NetBSD: gpio.4,v 1.34 2019/11/02 18:56:41 tnn Exp $
.\" $OpenBSD: gpio.4,v 1.5 2004/11/23 09:39:29 reyk Exp $
.\"
.\" Copyright (c) 2004 Alexander Yurchenko <[email protected]>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd February 20, 2018
+.Dd November 2, 2019
.Dt GPIO 4
.Os
.Sh NAME
@@ -102,6 +102,12 @@ The
or
.Fa gp_pin
field must be set before calling.
+If both are set, gp_name takes precedence.
+On return, the
+.Fa gp_name
+field contains the current name of the pin, if set by the controller driver
+or an earlier call to
+.Dv GPIOSET .
.Pp
.It Dv GPIOWRITE ( struct gpio_req )
Writes the output value to the pin.