From ed8fa82aea499f538824ae9adeb7c85388396edb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Wed, 23 Feb 2005 15:03:46 +0000 Subject: fixed setup of the gmini GPIO git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6047 a1c6a512-1295-4272-9138-f99709370657 --- firmware/system.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'firmware/system.c') diff --git a/firmware/system.c b/firmware/system.c index 05f5f49034..258fcd8827 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 */ -- cgit v1.2.3