FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_core/armio/armio.c @ 82:e3768114db59
armio.c: 2nd cleaning: removed some (CHIPSET != 12) noise
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 02 Oct 2016 07:16:15 +0000 |
parents | 8e5096429fd3 |
children | cff89030b634 |
comparison
equal
deleted
inserted
replaced
81:8e5096429fd3 | 82:e3768114db59 |
---|---|
172 // reset the IOs config | 172 // reset the IOs config |
173 AI_ResetIoConfig(); | 173 AI_ResetIoConfig(); |
174 | 174 |
175 // CLKM_IO_CNTL register configuration : | 175 // CLKM_IO_CNTL register configuration : |
176 // select IOs 6,8,9,10,11,12 and 13 on the pins instead of MCSI and MCUEN signals. | 176 // select IOs 6,8,9,10,11,12 and 13 on the pins instead of MCSI and MCUEN signals. |
177 #if (CHIPSET != 12) | |
178 AI_EnableBit(2); | 177 AI_EnableBit(2); |
179 AI_EnableBit(4); | 178 AI_EnableBit(4); |
180 #endif | |
181 | 179 |
182 /* Bits 5,6,7,8 are used to output I/O 9,10,11,12 or MCSI pins */ | 180 /* Bits 5,6,7,8 are used to output I/O 9,10,11,12 or MCSI pins */ |
183 /* If Bluetooth, IO should be disabled, outputting MCSI used for Bluetooth voice */ | 181 /* If Bluetooth, IO should be disabled, outputting MCSI used for Bluetooth voice */ |
184 #ifdef BTEMOBILE | 182 #ifdef BTEMOBILE |
185 #if (CHIPSET != 12) | |
186 AI_DisableBit(5); | 183 AI_DisableBit(5); |
187 AI_DisableBit(6); | 184 AI_DisableBit(6); |
188 AI_DisableBit(7); | 185 AI_DisableBit(7); |
189 AI_DisableBit(8); | 186 AI_DisableBit(8); |
190 #endif | 187 #else |
191 #else | |
192 #if (CHIPSET != 12) | |
193 AI_EnableBit(5); | 188 AI_EnableBit(5); |
194 AI_EnableBit(6); | 189 AI_EnableBit(6); |
195 AI_EnableBit(7); | 190 AI_EnableBit(7); |
196 AI_EnableBit(8); | 191 AI_EnableBit(8); |
197 #endif | 192 #endif |
198 #endif | 193 |
199 | |
200 #if (CHIPSET != 12) | |
201 AI_EnableBit(9); | 194 AI_EnableBit(9); |
202 #endif | |
203 | 195 |
204 // ARMIO_OUT register configuration : | 196 // ARMIO_OUT register configuration : |
205 // set IOs 8,9,10,11,12 and 13 as high | 197 // set IOs 8,9,10,11,12 and 13 as high |
206 // set IOs 0 to 7 as low | 198 // set IOs 0 to 7 as low |
207 #if ((BOARD == 8) || (BOARD == 9)) | 199 #if ((BOARD == 8) || (BOARD == 9)) |