Add support for GPIO_PIN_PULLDOWN, GPIO_PIN_INVIN, GPIO_PIN_INVOUT,
from OpenBSD.
This commit is contained in:
parent
b62fe25e9c
commit
cfebb94aea
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: gpioctl.8,v 1.3 2008/01/09 15:50:00 xtraeme Exp $
|
||||
.\" $NetBSD: gpioctl.8,v 1.4 2008/01/09 15:56:27 xtraeme Exp $
|
||||
.\" $OpenBSD: gpioctl.8,v 1.5 2004/12/02 05:11:40 grange Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
|
||||
|
@ -115,6 +115,12 @@ push-pull output
|
|||
tri-state (output disabled)
|
||||
.It pu
|
||||
internal pull-up enabled
|
||||
.It pd
|
||||
internal pull-down enabled
|
||||
.It iin
|
||||
invert input
|
||||
.It iout
|
||||
invert output
|
||||
.El
|
||||
.Pp
|
||||
Note that not all the flags can be supported by the particular
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gpioctl.c,v 1.1 2005/09/27 02:54:27 jmcneill Exp $ */
|
||||
/* $NetBSD: gpioctl.c,v 1.2 2008/01/09 15:56:27 xtraeme Exp $ */
|
||||
/* $OpenBSD: gpioctl.c,v 1.2 2004/08/08 00:05:09 deraadt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
|
||||
|
@ -55,6 +55,9 @@ const struct bitstr {
|
|||
{ GPIO_PIN_PUSHPULL, "pp" },
|
||||
{ GPIO_PIN_TRISTATE, "tri" },
|
||||
{ GPIO_PIN_PULLUP, "pu" },
|
||||
{ GPIO_PIN_PULLDOWN, "pd" },
|
||||
{ GPIO_PIN_INVIN, "iin" },
|
||||
{ GPIO_PIN_INVOUT, "iiout" },
|
||||
{ 0, NULL },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue