FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_core/armio/armio.c @ 677:91d9f8506420
GPIO046 dummy outputs on FCDEV3B, GTA0x and Tango
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Jun 2020 04:32:45 +0000 |
parents | 31d2824683cb |
children | ee3ac8c617cb |
comparison
equal
deleted
inserted
replaced
676:34f27d5f5393 | 677:91d9f8506420 |
---|---|
274 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00; | 274 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00; |
275 #endif | 275 #endif |
276 | 276 |
277 // ARMIO_CNTL_REG register configuration : | 277 // ARMIO_CNTL_REG register configuration : |
278 // set IOs 1,2,5,7,9,14 and 15 as ouputs. | 278 // set IOs 1,2,5,7,9,14 and 15 as ouputs. |
279 // bits conditionalized on CONFIG_TARGET_GTAMODEM or CONFIG_TARGET_FCFAM | 279 // all others are FreeCalypso additions |
280 // are FreeCalypso additions | 280 #if defined(CONFIG_GPIO046_OUTPUTS) || defined(CONFIG_TARGET_GTM900) |
281 #if defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_FCFAM) || \ | |
282 defined(CONFIG_TARGET_GTM900) | |
283 AI_ConfigBitAsOutput(0); | 281 AI_ConfigBitAsOutput(0); |
284 #endif | 282 #endif |
285 AI_ConfigBitAsOutput(1); | 283 AI_ConfigBitAsOutput(1); |
286 #ifndef CONFIG_TARGET_LEONARDO /* GPIO 2 is an input on Leonardo! */ | 284 #ifndef CONFIG_TARGET_LEONARDO /* GPIO 2 is an input on Leonardo! */ |
287 AI_ConfigBitAsOutput(2); | 285 AI_ConfigBitAsOutput(2); |
288 #endif | 286 #endif |
289 #ifdef CONFIG_GPIO3_OUTPUT | 287 #ifdef CONFIG_GPIO3_OUTPUT |
290 AI_ConfigBitAsOutput(3); | 288 AI_ConfigBitAsOutput(3); |
291 #endif | 289 #endif |
292 #if defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_FCFAM) | 290 #ifdef CONFIG_GPIO046_OUTPUTS |
293 AI_ConfigBitAsOutput(4); | 291 AI_ConfigBitAsOutput(4); |
294 #endif | 292 #endif |
295 AI_ConfigBitAsOutput(5); | 293 AI_ConfigBitAsOutput(5); |
296 #if defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_FCFAM) | 294 #ifdef CONFIG_GPIO046_OUTPUTS |
297 AI_ConfigBitAsOutput(6); | 295 AI_ConfigBitAsOutput(6); |
298 #endif | 296 #endif |
299 AI_ConfigBitAsOutput(7); | 297 AI_ConfigBitAsOutput(7); |
300 #if 1 /* FreeCalypso addition for all targets */ | 298 #if 1 /* FreeCalypso addition for all targets */ |
301 AI_ConfigBitAsOutput(8); | 299 AI_ConfigBitAsOutput(8); |