aboutsummaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-11-19 17:55:43 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-11-19 17:55:43 +0100
commitc1f247d0f23173c77a350324ddf0495ffb935860 (patch)
tree4074c12ff53bfe72620b8c5e5288440bf03b1ab5 /global.h
parent39145f6d1b8c57abe2bc0167b2b413970d0dfdb6 (diff)
downloadrpi-MMU-example-c1f247d0f23173c77a350324ddf0495ffb935860.tar.gz
rpi-MMU-example-c1f247d0f23173c77a350324ddf0495ffb935860.zip
guard against multiple-inclusion of headers
Diffstat (limited to 'global.h')
-rw-r--r--global.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/global.h b/global.h
index 02fdedc..b041a65 100644
--- a/global.h
+++ b/global.h
@@ -1,3 +1,6 @@
+#ifndef GLOBAL_H
+#define GLOBAL_H
+
// board type, raspi2
#define RASPI 2
@@ -10,3 +13,5 @@
#define GPIO_BASE 0x20200000
#endif // RASPI == 3 || RASPI == 2
#endif // RASPI == 4
+
+#endif // GLOBAL_H