summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/system.c23
1 files changed, 12 insertions, 11 deletions
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) {
134 P1 |= 0x07; 134 P1 |= 0x07;
135 P1CON |= 0x1f; 135 P1CON |= 0x1f;
136 136
137 /* P5 conf
138 * lines 0, 1 & 4 are digital, other analog. :
139 */
140 P5CON = 0xec;
141
142 P6CON = 0x19;
143
144 /* P7 conf
145 nothing to do: all are inputs
146 (reset value of the register is good)
147 */
148
137 /* SMSC chip config (?) */ 149 /* SMSC chip config (?) */
138 P6CON |= 0x08;
139 P10CON |= 0x20; 150 P10CON |= 0x20;
140 P6 &= 0xF7; 151 P6 &= 0xF7;
141 P10 &= 0x20; 152 P10 &= 0x20;
@@ -144,16 +155,6 @@ static void extra_init(void) {
144 P6 |= 0x08; 155 P6 |= 0x08;
145 P10 |= 0x20; 156 P10 |= 0x20;
146 } 157 }
147
148 /* P5 conf
149 * lines 0, 1 & 4 are digital, other analog. : P5CON = 0xec;
150 */
151
152 /* P7 conf
153 nothing to do: all are inputs
154 (reset value of the register is good)
155 */
156
157} 158}
158 159
159/* called by crt0 */ 160/* called by crt0 */