summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bus.c b/bus.c
index 38298d0..0683113 100644
--- a/bus.c
+++ b/bus.c
@@ -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) {