summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-26 15:14:53 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-26 15:14:53 -0400
commiteec87f54328d64828fd37575f18b23430b670485 (patch)
tree25cbd9045be9196ebf7f7982e897e52ce198ab63 /bus.c
parent82e549f79c290d6a97cf9161476eeb58cb564da3 (diff)
initial addition of gpib driver
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bus.c b/bus.c
index dfa10ba..a860893 100644
--- a/bus.c
+++ b/bus.c
@@ -326,7 +326,7 @@ static unsigned gpio_pins[] = { GPIO0_X + 22, // i.e., GPIO0_22
GPIO1_X + 15, // i.e., GPIO1_15
GPIO1_X + 14,
GPIO0_X + 27,
- GPIO1_X + 12
+ GPIO1_X + 12
};
@@ -367,9 +367,9 @@ void bus_init()
int bus_getpin(int pin)
{
- if (isbb) {
- return gpio_readvalue(gpio_pins[pin]);
- } else {
+ if (isbb) {
+ return gpio_readvalue(gpio_pins[pin]);
+ } else {
return 0;
}
}