summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2008-06-11 20:07:31 +0000
committermbalmer <mbalmer@openbsd.org>2008-06-11 20:07:31 +0000
commit729569a711924315e034f85a8dbeb4d46a0b14bc (patch)
treed4b124a87331b466fe45bdd374a58e5267249328 /usr.bin/cvs/diff.c
parentregen (diff)
downloadwireguard-openbsd-729569a711924315e034f85a8dbeb4d46a0b14bc.tar.xz
wireguard-openbsd-729569a711924315e034f85a8dbeb4d46a0b14bc.zip
When reading a GPIO pin, first determine if it is programmed for input
or output and then read the value from either the GPIO[x]_READ_BACK or GPIO[x]_OUT_VAL register. This allows to read back LED (output) states as well as input states (buttons). Problem noticed by Rolf Sommerhalder, fix by me.
Diffstat (limited to 'usr.bin/cvs/diff.c')
0 files changed, 0 insertions, 0 deletions