diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-26 15:14:53 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-09-26 15:14:53 -0400 |
commit | eec87f54328d64828fd37575f18b23430b670485 (patch) | |
tree | 25cbd9045be9196ebf7f7982e897e52ce198ab63 /bus.c | |
parent | 82e549f79c290d6a97cf9161476eeb58cb564da3 (diff) |
initial addition of gpib driver
Diffstat (limited to 'bus.c')
-rw-r--r-- | bus.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } } |