summaryrefslogtreecommitdiff
path: root/bus.h
diff options
context:
space:
mode:
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