changeset 372:c389d938a50e

aci3: AT%CBC and AT@CHG hooked in
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 01 Jan 2018 19:06:34 +0000
parents 9a237d51c226
children 9399a83cb394
files src/g23m-aci/aci/aci_cmh.h src/g23m-aci/aci/ati_cmd.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/g23m-aci/aci/aci_cmh.h	Mon Jan 01 18:34:42 2018 +0000
+++ b/src/g23m-aci/aci/aci_cmh.h	Mon Jan 01 19:06:34 2018 +0000
@@ -537,6 +537,8 @@
   AT_CMD_AT_VMPS,
   AT_CMD_AT_VMR,
   AT_CMD_AT_VMRS,
+  AT_CMD_P_CBC,
+  AT_CMD_AT_CHG,
   /* terminator */
   AT_CMD_MAX,                  /* maximum command id */
   AT_CMD_BIGGEST = 0x0000ffff  /* To avoid the lint warning 650 */
--- a/src/g23m-aci/aci/ati_cmd.c	Mon Jan 01 18:34:42 2018 +0000
+++ b/src/g23m-aci/aci/ati_cmd.c	Mon Jan 01 19:06:34 2018 +0000
@@ -77,6 +77,7 @@
 #endif
 
 #include "fc-target.cfg"
+#include "rv/rv_defined_swe.h"     // for RVM_FCHG_SWE
 
 #define OLD_NON_STANDARDIZED_ATCMD "&ABDEFHILMOPQSTVWXZ"
 
@@ -758,6 +759,10 @@
 EXTERN T_ATI_RSLT atAtVMPS (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT atAtVMR (char *cl, UBYTE srcId);
 EXTERN T_ATI_RSLT atAtVMRS (char *cl, UBYTE srcId);
+#ifdef RVM_FCHG_SWE
+EXTERN T_ATI_RSLT atPercentCBC (char *cl, UBYTE srcId);
+EXTERN T_ATI_RSLT atAtCHG (char *cl, UBYTE srcId);
+#endif
 
 LOCAL const ATCommand_bas cmds_bas[] =
 {
@@ -1213,6 +1218,10 @@
     {"@VMPS",	AT_CMD_AT_VMPS,  atAtVMPS,	0,	0,	0},
     {"@VMR",	AT_CMD_AT_VMR,   atAtVMR,	0,	0,	0},
     {"@VMRS",	AT_CMD_AT_VMRS,  atAtVMRS,	0,	0,	0},
+#ifdef RVM_FCHG_SWE
+    {"%CBC",	AT_CMD_P_CBC,    atPercentCBC,	0,	0,	0},
+    {"@CHG",	AT_CMD_AT_CHG,   atAtCHG,	test_gen, 0,	"%s: (0,1)"},
+#endif
     /* terminator */
     {NULL,AT_CMD_NONE,NULL,NULL,NULL,NULL}
 };