diff options
author | 2008-06-11 20:07:31 +0000 | |
---|---|---|
committer | 2008-06-11 20:07:31 +0000 | |
commit | 729569a711924315e034f85a8dbeb4d46a0b14bc (patch) | |
tree | d4b124a87331b466fe45bdd374a58e5267249328 /usr.bin/cvs/diff.c | |
parent | regen (diff) | |
download | wireguard-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