comparison gsm-fw/bsp/armio.c @ 1025:4c80a6e6723f

gsm-fw: added provisional support for FCDEV3B target ahead of the hardware
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Tue, 03 May 2016 23:46:54 +0000
parents 383abdbc5d35
children
comparison
equal deleted inserted replaced
1024:1886238653b8 1025:4c80a6e6723f
222 AI_ConfigBitAsOutput(12); 222 AI_ConfigBitAsOutput(12);
223 AI_ConfigBitAsOutput(13); 223 AI_ConfigBitAsOutput(13);
224 } 224 }
225 #endif 225 #endif
226 226
227 #ifdef CONFIG_TARGET_FCDEV3B
228 /* version for the to-be-built FCDEV3B board */
229 void AI_InitIOConfig(void)
230 {
231 // reset the IOs config
232 AI_ResetIoConfig();
233
234 AI_EnableBit(0);
235 AI_DisableBit(1);
236 AI_EnableBit(2);
237 AI_EnableBit(4);
238
239 /*
240 * The MCSI pins are brought out to a header with the intent of
241 * facilitating experimentation with this interface, so let's put them
242 * into the MCSI configuration.
243 */
244 AI_DisableBit(5);
245 AI_DisableBit(6);
246 AI_DisableBit(7);
247 AI_DisableBit(8);
248
249 AI_EnableBit(9);
250
251 // ARMIO_OUT register configuration: same as TI's code sets
252 // the loudspeaker PA is disabled on boot for the time being
253 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00;
254
255 // ARMIO_CNTL_REG register configuration:
256 // most of the pins are no-connects, make them outputs
257
258 AI_ConfigBitAsOutput(0);
259 AI_ConfigBitAsOutput(1);
260 AI_ConfigBitAsOutput(2);
261 AI_ConfigBitAsOutput(4);
262 AI_ConfigBitAsOutput(6);
263 AI_ConfigBitAsOutput(8);
264 AI_ConfigBitAsOutput(9);
265 AI_ConfigBitAsOutput(13);
266 }
267 #endif
268
227 #ifdef CONFIG_TARGET_PIRELLI 269 #ifdef CONFIG_TARGET_PIRELLI
228 /* version for Pirelli DP-L10 */ 270 /* version for Pirelli DP-L10 */
229 void AI_InitIOConfig(void) 271 void AI_InitIOConfig(void)
230 { 272 {
231 // reset the IOs config 273 // reset the IOs config