X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Fgpio.h;h=01f315341f1dbe05ff69a5f66b8d70b67dccfc9e;hp=19ca6c35eb24b95897f5dee6d1ac2501d6423f3d;hb=36f1048dfeec94c6f305b76082fecec93347b2ec;hpb=9a3655a43358c43128f6e62c8d74ff3aa81960c7 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 */