summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:02:00 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:02:00 -0500
commit577674a51fa4b5a871c256af85f53e9b848d9520 (patch)
tree9f8daae1b0cf679ff862d2b8224133374aef7fa6 /bus.c
parentfd3246c8939d3db256d7aaa85343094df84abfd8 (diff)
POWER_FAIL is an input
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus.c b/bus.c
index 43de205..dfa10ba 100644
--- a/bus.c
+++ b/bus.c
@@ -356,6 +356,11 @@ void bus_init()
gpio_export(gpio_pins[i]);
gpio_changedirection(gpio_pins[i], true);
}
+
+ // FIXME: make this more elegant
+ //
+ // the POWER_FAIL pin is an input
+ gpio_changedirection(gpio_pins[POWER_FAIL], false);
}
}