X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgpio.h;h=01f315341f1dbe05ff69a5f66b8d70b67dccfc9e;hb=d80ebb8add60dd01b37d21c21a1a9d971f0f9dce;hp=19ca6c35eb24b95897f5dee6d1ac2501d6423f3d;hpb=9a3655a43358c43128f6e62c8d74ff3aa81960c7;p=rpikern diff --git a/src/gpio.h b/src/gpio.h index 19ca6c3..01f3153 100644 --- a/src/gpio.h +++ b/src/gpio.h @@ -1,9 +1,10 @@ #ifndef GPIO_H_ #define GPIO_H_ +#include "config.h" #include "asm.h" -#define GPIO_BASE 0x3f200000 +#define GPIO_BASE (IO_BASE | 0x200000) #define GPIO_REG(x) (*(volatile uint32_t*)(GPIO_BASE | (x))) /* function select */