FreeCalypso > hg > fc-magnetite
diff src/aci2/aci/ati_cmd.c @ 347:78d1df0b8487
aci2: AT%CBC and AT@CHARGE implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 16 Dec 2017 00:37:43 +0000 |
parents | 8a23632ee0e0 |
children | 09b12bd1b0f2 |
line wrap: on
line diff
--- a/src/aci2/aci/ati_cmd.c Fri Dec 15 22:45:37 2017 +0000 +++ b/src/aci2/aci/ati_cmd.c Sat Dec 16 00:37:43 2017 +0000 @@ -76,6 +76,7 @@ #endif #include "fc-target.cfg" +#include "rv/rv_defined_swe.h" // for RVM_FCHG_SWE #define OLD_NON_STANDARDIZED_ATCMD "&ABDEFHILMOPQSTVWXZ" @@ -690,6 +691,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 atAtCHARGE (char *cl, UBYTE srcId); +#endif LOCAL const ATCommand_bas cmds_bas[] = { @@ -1092,6 +1097,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}, + {"@CHARGE", AT_CMD_AT_CHARGE,atAtCHARGE, 0, 0, "%s: (0,1)"}, +#endif /* terminator */ {NULL,0,0,0,0,0} };