]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make it possible for operations to refer to GPIO pins by name
authorgonzo <gonzo@FreeBSD.org>
Fri, 11 Mar 2016 21:05:16 +0000 (21:05 +0000)
committergonzo <gonzo@FreeBSD.org>
Fri, 11 Mar 2016 21:05:16 +0000 (21:05 +0000)
commitd652802e2431dec69e6586378b0a804c9aa5d4f7
tree7714e7306104fd69d4a49e29eab0ed5c0c2486fd
parent2bf5979518a20dca9b6102d3b6271d65a65fb46b
Make it possible for operations to refer to GPIO pins by name

- Try to guess what is provided as a pin spec for -t or for get/set
    operation: number or name. Fails in case of ambiguity.
- Add -p and -N switches to force pin specification interpretation:
    -p forces spec to be pin number, -N forces it to be name

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
Differential Revision: https://reviews.freebsd.org/D5201
usr.sbin/gpioctl/gpioctl.8
usr.sbin/gpioctl/gpioctl.c