serial experiment works
[rpikern] / src / gpio.h
index 19ca6c3..01f3153 100644 (file)
@@ -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 */