FreeCalypso > hg > freecalypso-sw
diff gsm-fw/g23m-aci/aci/aci_aci.c @ 878:89c70b89dca5
gsm-fw: feature at-rvtmux implemented, compiles
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 31 May 2015 08:02:36 +0000 |
parents | 286567fb2ab8 |
children |
line wrap: on
line diff
--- a/gsm-fw/g23m-aci/aci/aci_aci.c Sat May 30 08:10:36 2015 +0000 +++ b/gsm-fw/g23m-aci/aci/aci_aci.c Sun May 31 08:02:36 2015 +0000 @@ -110,8 +110,15 @@ | STATE : code ROUTINE : aci_aci_cmd_req | +--------------------------------------------------------------------+ - PURPOSE : handle ACI command request primitive. It is only a - signal and must not be freed by PFREE. + PURPOSE : handle ACI command request primitive. The original comment + said "It is only a signal and must not be freed by PFREE", + but it appears to have been wrong even before we touched + this code. + + FreeCalypso change: this primitive (not signal!) was originally used + for by TI's _SIMULATION_ environment (the code in ati_src_tst.c, + removed in the TCS3.2 version we got), but we have repurposed it + for our AT-over-RVTMUX implementation in ati_src_rvt.c. */ @@ -125,8 +132,8 @@ cmd->cmd_seq[cmd->cmd_len] = '\0'; TRACE_EVENT_P1 ("%s", cmd->cmd_seq); } -#ifdef DTI -#ifdef _SIMULATION_ + +#if defined _SIMULATION_ AND defined DTI if (cmd->cmd_src >= CMD_SRC_EXT AND cmd->cmd_src <= MAX_TST_SRC) { #ifdef FF_ATI_BAT @@ -158,9 +165,12 @@ { TRACE_EVENT_P1 ("aci_aci_cmd_req(): [WRN] srcId=%d, but must be 0x01 or 0x02", cmd->cmd_src); } -#endif /* _SIMULATION_ */ -#endif /* DTI */ -#endif +#elif CONFIG_AT_RVTMUX + + ati_src_rvt_proc_cmd (cmd); + +#endif /* old _SIMULATION_ vs FreeCalypso AT-over-RVTMUX */ +#endif /* FF_ATI */ PFREE (cmd);