FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_core/armio/armio.c @ 83:cff89030b634
armio.c: drive some more unused pins as outputs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 02 Oct 2016 07:22:08 +0000 |
parents | e3768114db59 |
children | 42d766231c46 |
comparison
equal
deleted
inserted
replaced
82:e3768114db59 | 83:cff89030b634 |
---|---|
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 AI_EnableBit(0); /* FreeCalypso addition */ | |
177 AI_EnableBit(2); | 178 AI_EnableBit(2); |
178 AI_EnableBit(4); | 179 AI_EnableBit(4); |
179 | 180 |
180 /* Bits 5,6,7,8 are used to output I/O 9,10,11,12 or MCSI pins */ | 181 /* Bits 5,6,7,8 are used to output I/O 9,10,11,12 or MCSI pins */ |
181 /* If Bluetooth, IO should be disabled, outputting MCSI used for Bluetooth voice */ | 182 /* If Bluetooth, IO should be disabled, outputting MCSI used for Bluetooth voice */ |
227 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; | 228 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; |
228 #endif | 229 #endif |
229 | 230 |
230 // ARMIO_CNTL_REG register configuration : | 231 // ARMIO_CNTL_REG register configuration : |
231 // set IOs 1,2,5,7,9,14 and 15 as ouputs. | 232 // set IOs 1,2,5,7,9,14 and 15 as ouputs. |
233 AI_ConfigBitAsOutput(0); /* FreeCalypso addition */ | |
232 // CC test 0316 | 234 // CC test 0316 |
233 AI_ConfigBitAsOutput(1); | 235 AI_ConfigBitAsOutput(1); |
234 // end | 236 // end |
235 AI_ConfigBitAsOutput(2); | 237 AI_ConfigBitAsOutput(2); |
238 AI_ConfigBitAsOutput(4); /* FreeCalypso addition */ | |
236 AI_ConfigBitAsOutput(5); | 239 AI_ConfigBitAsOutput(5); |
240 AI_ConfigBitAsOutput(6); /* FreeCalypso addition */ | |
237 AI_ConfigBitAsOutput(7); | 241 AI_ConfigBitAsOutput(7); |
242 AI_ConfigBitAsOutput(8); /* FreeCalypso addition */ | |
238 AI_ConfigBitAsOutput(9); | 243 AI_ConfigBitAsOutput(9); |
244 AI_ConfigBitAsOutput(13); /* FreeCalypso addition */ | |
239 AI_ConfigBitAsOutput(14); | 245 AI_ConfigBitAsOutput(14); |
240 AI_ConfigBitAsOutput(15); | 246 AI_ConfigBitAsOutput(15); |
241 #endif | 247 #endif |
242 } | 248 } |
243 | 249 |