diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 20:10:56 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 20:10:56 +0100 |
commit | b1327588146761d10c949d365f3150f9a7504ee4 (patch) | |
tree | 7b0ed08fe48e09d9798c4e8f6bc304d4a9640576 | |
parent | 42636b818a2f8e1b14917e6060fc149f39987299 (diff) | |
download | rpi-MMU-example-b1327588146761d10c949d365f3150f9a7504ee4.tar.gz rpi-MMU-example-b1327588146761d10c949d365f3150f9a7504ee4.zip |
define peripherals base
-rw-r--r-- | global.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -5,13 +5,15 @@ #define RASPI 2 #if RASPI == 4 -#define GPIO_BASE 0xFE200000 +#define PERIF_BASE 0xFE000000 #else #if RASPI == 3 || RASPI == 2 -#define GPIO_BASE 0x3F200000 +#define PERIF_BASE 0x3F000000 #else -#define GPIO_BASE 0x20200000 +#define PERIF_BASE 0x20000000 #endif // RASPI == 3 || RASPI == 2 #endif // RASPI == 4 +#define GPIO_BASE (PERIF_BASE + 0x200000) + #endif // GLOBAL_H |