FreeCalypso > hg > fc-magnetite
comparison src/g23m-aci/aci/ati_cmd.c @ 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 | 5b2ebc94cae4 |
children | 8473cabf491d |
comparison
equal
deleted
inserted
replaced
371:9a237d51c226 | 372:c389d938a50e |
---|---|
75 #include "ati_bat.h" | 75 #include "ati_bat.h" |
76 #include "aci_bat.h" | 76 #include "aci_bat.h" |
77 #endif | 77 #endif |
78 | 78 |
79 #include "fc-target.cfg" | 79 #include "fc-target.cfg" |
80 #include "rv/rv_defined_swe.h" // for RVM_FCHG_SWE | |
80 | 81 |
81 #define OLD_NON_STANDARDIZED_ATCMD "&ABDEFHILMOPQSTVWXZ" | 82 #define OLD_NON_STANDARDIZED_ATCMD "&ABDEFHILMOPQSTVWXZ" |
82 | 83 |
83 /*==== EXTERNALS ======================================================*/ | 84 /*==== EXTERNALS ======================================================*/ |
84 EXTERN T_SMS_SHRD_PRM smsShrdPrm; | 85 EXTERN T_SMS_SHRD_PRM smsShrdPrm; |
756 EXTERN T_ATI_RSLT atAtTSTOP (char *cl, UBYTE srcId); | 757 EXTERN T_ATI_RSLT atAtTSTOP (char *cl, UBYTE srcId); |
757 EXTERN T_ATI_RSLT atAtVMP (char *cl, UBYTE srcId); | 758 EXTERN T_ATI_RSLT atAtVMP (char *cl, UBYTE srcId); |
758 EXTERN T_ATI_RSLT atAtVMPS (char *cl, UBYTE srcId); | 759 EXTERN T_ATI_RSLT atAtVMPS (char *cl, UBYTE srcId); |
759 EXTERN T_ATI_RSLT atAtVMR (char *cl, UBYTE srcId); | 760 EXTERN T_ATI_RSLT atAtVMR (char *cl, UBYTE srcId); |
760 EXTERN T_ATI_RSLT atAtVMRS (char *cl, UBYTE srcId); | 761 EXTERN T_ATI_RSLT atAtVMRS (char *cl, UBYTE srcId); |
762 #ifdef RVM_FCHG_SWE | |
763 EXTERN T_ATI_RSLT atPercentCBC (char *cl, UBYTE srcId); | |
764 EXTERN T_ATI_RSLT atAtCHG (char *cl, UBYTE srcId); | |
765 #endif | |
761 | 766 |
762 LOCAL const ATCommand_bas cmds_bas[] = | 767 LOCAL const ATCommand_bas cmds_bas[] = |
763 { | 768 { |
764 {"A", atA, 0, 0 }, | 769 {"A", atA, 0, 0 }, |
765 {"B", atBW, 0, 0 }, | 770 {"B", atBW, 0, 0 }, |
1211 {"@TSTOP", AT_CMD_AT_TSTOP, atAtTSTOP, 0, 0, 0}, | 1216 {"@TSTOP", AT_CMD_AT_TSTOP, atAtTSTOP, 0, 0, 0}, |
1212 {"@VMP", AT_CMD_AT_VMP, atAtVMP, 0, 0, 0}, | 1217 {"@VMP", AT_CMD_AT_VMP, atAtVMP, 0, 0, 0}, |
1213 {"@VMPS", AT_CMD_AT_VMPS, atAtVMPS, 0, 0, 0}, | 1218 {"@VMPS", AT_CMD_AT_VMPS, atAtVMPS, 0, 0, 0}, |
1214 {"@VMR", AT_CMD_AT_VMR, atAtVMR, 0, 0, 0}, | 1219 {"@VMR", AT_CMD_AT_VMR, atAtVMR, 0, 0, 0}, |
1215 {"@VMRS", AT_CMD_AT_VMRS, atAtVMRS, 0, 0, 0}, | 1220 {"@VMRS", AT_CMD_AT_VMRS, atAtVMRS, 0, 0, 0}, |
1221 #ifdef RVM_FCHG_SWE | |
1222 {"%CBC", AT_CMD_P_CBC, atPercentCBC, 0, 0, 0}, | |
1223 {"@CHG", AT_CMD_AT_CHG, atAtCHG, test_gen, 0, "%s: (0,1)"}, | |
1224 #endif | |
1216 /* terminator */ | 1225 /* terminator */ |
1217 {NULL,AT_CMD_NONE,NULL,NULL,NULL,NULL} | 1226 {NULL,AT_CMD_NONE,NULL,NULL,NULL,NULL} |
1218 }; | 1227 }; |
1219 | 1228 |
1220 static const char large_output_cmd[5][6] = | 1229 static const char large_output_cmd[5][6] = |