From 41ad4c6268b0292464802d88ac6835d21e69cabb Mon Sep 17 00:00:00 2001 From: vetch Date: Thu, 3 Oct 2019 17:57:43 +0200 Subject: changes in Makefile, modularize kernel --- global.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 global.h (limited to 'global.h') 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 -- cgit v1.2.3