FreeCalypso > hg > fc-magnetite
changeset 628:38a65c3a96af
aci2 & aci3: AT@SPKR conditionalized on GPIO1_SPEAKER_CTRL
new preprocessor symbol
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 23 Dec 2019 07:30:59 +0000 |
parents | 4a8dacbe9187 |
children | 3231dd9b38c1 |
files | src/aci2/aci/ati_audio.c src/aci2/aci/ati_cmd.c src/g23m-aci/aci/ati_audio.c src/g23m-aci/aci/ati_cmd.c |
diffstat | 4 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aci2/aci/ati_audio.c Mon Dec 23 07:12:10 2019 +0000 +++ b/src/aci2/aci/ati_audio.c Mon Dec 23 07:30:59 2019 +0000 @@ -69,7 +69,7 @@ #include "fc-target.h" #include "armio.h" -#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCFAM) +#if GPIO1_SPEAKER_CTRL /* AT@SPKR - turn loudspeaker amplifier on or off */ GLOBAL T_ATI_RSLT atAtSPKR ( char *cl, UBYTE srcId ) {
--- a/src/aci2/aci/ati_cmd.c Mon Dec 23 07:12:10 2019 +0000 +++ b/src/aci2/aci/ati_cmd.c Mon Dec 23 07:30:59 2019 +0000 @@ -675,7 +675,7 @@ EXTERN T_ATI_RSLT atAtBAND (CHAR *cl, UBYTE srcId); /* FreeCalypso additions */ -#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCFAM) +#if GPIO1_SPEAKER_CTRL EXTERN T_ATI_RSLT atAtSPKR (char *cl, UBYTE srcId); EXTERN T_ATI_RSLT queatAtSPKR (char *cl, UBYTE srcId); #endif @@ -1090,7 +1090,7 @@ {"@RST", AT_CMD_P_RST, atAtRST, 0, 0, 0}, {"@BAND", AT_CMD_P_BAND, atAtBAND, 0, 0, 0}, /* FreeCalypso additions */ -#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCFAM) +#if GPIO1_SPEAKER_CTRL {"@SPKR", AT_CMD_AT_SPKR, atAtSPKR, test_gen, queatAtSPKR, "%s: (0,1)"}, #endif #ifdef CONFIG_TARGET_FCMODEM
--- a/src/g23m-aci/aci/ati_audio.c Mon Dec 23 07:12:10 2019 +0000 +++ b/src/g23m-aci/aci/ati_audio.c Mon Dec 23 07:30:59 2019 +0000 @@ -69,7 +69,7 @@ #include "fc-target.h" #include "armio.h" -#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCFAM) +#if GPIO1_SPEAKER_CTRL /* AT@SPKR - turn loudspeaker amplifier on or off */ GLOBAL T_ATI_RSLT atAtSPKR ( char *cl, UBYTE srcId ) {
--- a/src/g23m-aci/aci/ati_cmd.c Mon Dec 23 07:12:10 2019 +0000 +++ b/src/g23m-aci/aci/ati_cmd.c Mon Dec 23 07:30:59 2019 +0000 @@ -743,7 +743,7 @@ EXTERN T_ATI_RSLT atAtBAND (CHAR *cl, UBYTE srcId); /* FreeCalypso additions */ -#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCFAM) +#if GPIO1_SPEAKER_CTRL EXTERN T_ATI_RSLT atAtSPKR (char *cl, UBYTE srcId); EXTERN T_ATI_RSLT queatAtSPKR (char *cl, UBYTE srcId); #endif @@ -1209,7 +1209,7 @@ {"@RST", AT_CMD_P_RST, atAtRST, 0, 0, 0}, {"@BAND", AT_CMD_P_BAND, atAtBAND, 0, 0, 0}, /* FreeCalypso additions */ -#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCFAM) +#if GPIO1_SPEAKER_CTRL {"@SPKR", AT_CMD_AT_SPKR, atAtSPKR, test_gen, queatAtSPKR, "%s: (0,1)"}, #endif #ifdef CONFIG_TARGET_FCMODEM