summaryrefslogtreecommitdiff
path: root/bus.h
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-19 08:34:28 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-19 08:34:28 -0400
commit97cda5ea3eb717511dd6feb9ee9cafb45a4f9a7f (patch)
tree9ce26f86be8cde979823ee8671cd27b6f4636c6d /bus.h
parent9f06b3419173ce1c0f0967676c9eea2915c28418 (diff)
simpler definition of gpio pins
Diffstat (limited to 'bus.h')
-rw-r--r--bus.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/bus.h b/bus.h
index 7031e95..6bb3e83 100644
--- a/bus.h
+++ b/bus.h
@@ -10,6 +10,8 @@
#include <stdint.h>
+
+// these are assigned pins in gpio_pins[] in bus.c
#define out_DATA_LINE 0 /* out data signaled on 0 output of decoder */
#define out_CLOCK_LINE 1 /* out clock signaled on 1 output of decoder */
#define out_STROBE_LINE 2 /* out latch strobe on 2 output of decoder */
@@ -22,21 +24,6 @@
#define Octal_DACportCS_high 0x20
#define TNT_Port 0x40
-
-#define GPIOPIN0BASE 0
-#define GPIOPIN1BASE 0
-#define GPIOPIN2BASE 0
-#define GPIOPIN3BASE 32
-#define GPIOPIN4BASE 32
-#define GPIOPIN5BASE 0
-
-#define GPIOPIN0PIN 22
-#define GPIOPIN1PIN 23
-#define GPIOPIN2PIN 26
-#define GPIOPIN3PIN 15
-#define GPIOPIN4PIN 14
-#define GPIOPIN5PIN 27
-
#define GPMCACCESSTIME 0x07
void bus_init(void); // call this before doing anything