diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-06-11 20:07:32 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-06-11 20:07:32 +0000 |
commit | 4ad2c971c07d8ffb4a29a65a12bbaf7b7fef1fa0 (patch) | |
tree | c209c5a3a316be82c3988277e30307e3d648d845 /libexec/rpc.rstatd/rpc.rstatd.8 | |
parent | 7feb01df1ff711fdde4bd158d74ac20a4692183c (diff) |
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 'libexec/rpc.rstatd/rpc.rstatd.8')
0 files changed, 0 insertions, 0 deletions