summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-23 15:03:46 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-23 15:03:46 +0000
commited8fa82aea499f538824ae9adeb7c85388396edb (patch)
treebe8a364ae8a41be726e90ded1bd6b5e3390c6fb2
parent0cd492f5527564f0e84382637158babb7d8d98f3 (diff)
downloadrockbox-ed8fa82aea499f538824ae9adeb7c85388396edb.zip
rockbox-ed8fa82aea499f538824ae9adeb7c85388396edb.tar.gz
rockbox-ed8fa82aea499f538824ae9adeb7c85388396edb.tar.bz2
rockbox-ed8fa82aea499f538824ae9adeb7c85388396edb.tar.xz
fixed setup of the gmini GPIO
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6047 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/system.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 05f5f49..258fcd8 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -134,8 +134,19 @@ static void extra_init(void) {
P1 |= 0x07;
P1CON |= 0x1f;
+ /* P5 conf
+ * lines 0, 1 & 4 are digital, other analog. :
+ */
+ P5CON = 0xec;
+
+ P6CON = 0x19;
+
+ /* P7 conf
+ nothing to do: all are inputs
+ (reset value of the register is good)
+ */
+
/* SMSC chip config (?) */
- P6CON |= 0x08;
P10CON |= 0x20;
P6 &= 0xF7;
P10 &= 0x20;
@@ -144,16 +155,6 @@ static void extra_init(void) {
P6 |= 0x08;
P10 |= 0x20;
}
-
- /* P5 conf
- * lines 0, 1 & 4 are digital, other analog. : P5CON = 0xec;
- */
-
- /* P7 conf
- nothing to do: all are inputs
- (reset value of the register is good)
- */
-
}
/* called by crt0 */