comparison src/cs/drivers/drv_core/armio/armio.c @ 632:d968a3216ba0

new tangomdm build target TCS211/Magnetite built for target leonardo runs just fine on the Tango-based Caramel board, but a more proper tangomdm build target is preferable in order to better market these Tango modems to prospective commercial customers. The only differences are in GPIO and MCSI config: * MCSI is enabled in the tangomdm build config. * GPIO 1 is loudspeaker amplifier control on Leonardo, but on Tango platforms it can be used for anything. On Caramel boards this GPIO should be configured as an output driving high. * GPIO 2 needs to be configured as Calypso input on Leonardo, but on Tango platforms it can be used for anything. On Caramel boards this GPIO should be configured as an output, either high or low is OK.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 04 Jan 2020 19:27:41 +0000
parents 597869e59805
children 31d2824683cb
comparison
equal deleted inserted replaced
631:597869e59805 632:d968a3216ba0
266 // On the GTM900 GPIOs 0 and 1 are RI and DSR outputs, respectively. 266 // On the GTM900 GPIOs 0 and 1 are RI and DSR outputs, respectively.
267 // For targets other than GTM900, we enable the audio amplifier 267 // For targets other than GTM900, we enable the audio amplifier
268 // if we are in an MMI!=0 build - for ACI builds use the AT@SPKR command. 268 // if we are in an MMI!=0 build - for ACI builds use the AT@SPKR command.
269 #ifdef CONFIG_TARGET_GTM900 269 #ifdef CONFIG_TARGET_GTM900
270 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; 270 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01;
271 #elif (MMI != 0) 271 #elif (MMI != 0) || defined(CONFIG_GPIO1_HIGH)
272 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F02; 272 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F02;
273 #else 273 #else
274 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00; 274 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00;
275 #endif 275 #endif
276 276