diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-19 11:01:31 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-19 11:01:31 -0400 |
commit | 8dd603c8036f4eafd440ac14234d42d6c5eaefab (patch) | |
tree | 40a2f46f4725354d2ebe0c0c5113b26532fc07fc /bus.c | |
parent | 7a9dfe8a49b21c82742e13c43670a92de2380871 (diff) |
add gpio bit read function
Diffstat (limited to 'bus.c')
-rw-r--r-- | bus.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -358,6 +358,16 @@ void bus_init() } } + +int bus_getpin(int pin) +{ + if (isbb) { + return gpio_readvalue(gpio_pins[pin]); + } else { + return 0; + } +} + void bus_setpin(int pin, int value) { if (isbb) { |