projects
/
rpikern
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testing minimal program
[rpikern]
/
src
/
config.h
diff --git a/src/config.h
b/src/config.h
new file mode 100644
(file)
index 0000000..
0e997c7
--- /dev/null
+++ b/
src/config.h
@@ -0,0
+1,14
@@
+#ifndef CONFIG_H_
+#define CONFIG_H_
+
+#ifndef RPI_MODEL
+#define RPI_MODEL 2
+#endif
+
+#if RPI_MODEL == 1
+#define IO_BASE 0x20000000
+#else
+#define IO_BASE 0x3f000000
+#endif
+
+#endif /* CONFIG_H_ */