projects
/
rpikern
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
video initialization seems to work, further testing needed
[rpikern]
/
src
/
gpio.h
diff --git
a/src/gpio.h
b/src/gpio.h
index
19ca6c3
..
01f3153
100644
(file)
--- 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 */