diff options
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 |