changeset 410:bc1654e1e80d

AT@SPKR command in aci2 enabled for the D-Sample target
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Jan 2018 06:09:39 +0000
parents 6c3f68021c53
children ee49b250774f
files src/aci2/aci/ati_audio.c src/aci2/aci/ati_cmd.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/aci2/aci/ati_audio.c	Thu Jan 18 05:59:41 2018 +0000
+++ b/src/aci2/aci/ati_audio.c	Thu Jan 18 06:09:39 2018 +0000
@@ -69,7 +69,7 @@
 #include "fc-target.cfg"
 #include "armio.h"
 
-#ifdef CONFIG_TARGET_FCDEV3B
+#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCDEV3B)
 /* AT@SPKR - turn loudspeaker amplifier on or off */
 GLOBAL T_ATI_RSLT atAtSPKR ( char *cl, UBYTE srcId )
 {
--- a/src/aci2/aci/ati_cmd.c	Thu Jan 18 05:59:41 2018 +0000
+++ b/src/aci2/aci/ati_cmd.c	Thu Jan 18 06:09:39 2018 +0000
@@ -675,9 +675,11 @@
 EXTERN T_ATI_RSLT atAtBAND (CHAR *cl, UBYTE srcId);
 
 /* FreeCalypso additions */
-#ifdef CONFIG_TARGET_FCDEV3B
+#if defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_FCDEV3B)
 EXTERN T_ATI_RSLT atAtSPKR (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT queatAtSPKR (char *cl, UBYTE srcId);
+#endif
+#ifdef CONFIG_TARGET_FCDEV3B
 EXTERN T_ATI_RSLT atAtVPATH (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT queatAtVPATH (char *cl, UBYTE srcId);
 #endif
@@ -1083,8 +1085,10 @@
     {"@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_FCDEV3B)
+    {"@SPKR",	AT_CMD_AT_SPKR,  atAtSPKR, test_gen, queatAtSPKR, "%s: (0,1)"},
+#endif
 #ifdef CONFIG_TARGET_FCDEV3B
-    {"@SPKR",	AT_CMD_AT_SPKR,  atAtSPKR, test_gen, queatAtSPKR, "%s: (0,1)"},
     {"@VPATH",	AT_CMD_AT_VPATH, atAtVPATH,test_gen, queatAtVPATH,"%s: (0-2)"},
 #endif
     {"@SND",	AT_CMD_AT_SND,   atAtSND,	0,	0,	0},