Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCluster <clusterrr@clusterrr.com>2020-07-28 12:25:53 +0300
committerCluster <clusterrr@clusterrr.com>2020-07-28 12:25:53 +0300
commit219ee887a94b8886ba0e630358f3303c218707a6 (patch)
tree5c1dd04d231b35230ce6056d2a5e64c347aa2b47 /dumper.h
parent69bd8adaf230a2b5134b9c0cc5d50bc0b4ffc128 (diff)
dumper.hex, new compiled .hex
Diffstat (limited to 'dumper.h')
-rw-r--r--dumper.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/dumper.h b/dumper.h
new file mode 100644
index 0000000..9f23863
--- /dev/null
+++ b/dumper.h
@@ -0,0 +1,12 @@
+#ifndef _DUMPER_H_
+#define _DUMPER_H_
+
+#define CONCAT(a, b) a ## b
+#define COOLBOY_OUTPORT(name) CONCAT(PORT, name)
+#define COOLBOY_DDRPORT(name) CONCAT(DDR, name)
+#define COOLBOY_INPORT(name) CONCAT(PIN, name)
+#define COOLBOY_PORT COOLBOY_OUTPORT(COOLBOY_GPIO_PORT)
+#define COOLBOY_DDR COOLBOY_DDRPORT(COOLBOY_GPIO_PORT)
+#define COOLBOY_PIN COOLBOY_INPORT(COOLBOY_GPIO_PORT)
+
+#endif