aboutsummaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2019-10-03 17:57:43 +0200
committervetch <vetch97@gmail.com>2019-10-03 17:57:43 +0200
commit41ad4c6268b0292464802d88ac6835d21e69cabb (patch)
tree400b789ec9e84ad2a108db51a4cbf7f43a2f4631 /global.h
parentc0f127091eec7a9c975389fda5f49c63eccb3d3a (diff)
downloadrpi-MMU-example-41ad4c6268b0292464802d88ac6835d21e69cabb.tar.gz
rpi-MMU-example-41ad4c6268b0292464802d88ac6835d21e69cabb.zip
changes in Makefile, modularize kernel
Diffstat (limited to 'global.h')
-rw-r--r--global.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/global.h b/global.h
new file mode 100644
index 0000000..6dd2e48
--- /dev/null
+++ b/global.h
@@ -0,0 +1,11 @@
+// board type, raspi2
+#define RASPI 2
+#if RASPI == 4
+#define GPIO_BASE 0xFE200000
+#else
+#if RASPI == 3 || RASPI == 2
+#define GPIO_BASE 0x3F200000
+#else
+#define GPIO_BASE 0x20200000
+#endif // RASPI == 3 || RASPI == 2
+#endif // RASPI == 4