diff options
author | vetch <vetch97@gmail.com> | 2019-10-03 17:57:43 +0200 |
---|---|---|
committer | vetch <vetch97@gmail.com> | 2019-10-03 17:57:43 +0200 |
commit | 41ad4c6268b0292464802d88ac6835d21e69cabb (patch) | |
tree | 400b789ec9e84ad2a108db51a4cbf7f43a2f4631 /global.h | |
parent | c0f127091eec7a9c975389fda5f49c63eccb3d3a (diff) | |
download | rpi-MMU-example-41ad4c6268b0292464802d88ac6835d21e69cabb.tar.gz rpi-MMU-example-41ad4c6268b0292464802d88ac6835d21e69cabb.zip |
changes in Makefile, modularize kernel
Diffstat (limited to 'global.h')
-rw-r--r-- | global.h | 11 |
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 |