comparison g23m/condat/ms/src/aci/aci_aci.c @ 11:98f5312a7d0b

AT-over-RVTMUX implementation code hooked in
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 19:16:41 +0000
parents 4a87497c80af
children
comparison
equal deleted inserted replaced
10:4a87497c80af 11:98f5312a7d0b
101 +--------------------------------------------------------------------+ 101 +--------------------------------------------------------------------+
102 | PROJECT : GSM-F&D (8411) MODULE : ACI | 102 | PROJECT : GSM-F&D (8411) MODULE : ACI |
103 | STATE : code ROUTINE : aci_aci_cmd_req | 103 | STATE : code ROUTINE : aci_aci_cmd_req |
104 +--------------------------------------------------------------------+ 104 +--------------------------------------------------------------------+
105 105
106 PURPOSE : handle ACI command request primitive. It is only a 106 PURPOSE : handle ACI command request primitive. The original comment
107 signal and must not be freed by PFREE. 107 said "It is only a signal and must not be freed by PFREE",
108 but it appears to have been wrong even before we touched
109 this code.
110
111 FreeCalypso change: this primitive (not signal!) was originally used
112 for by TI's _SIMULATION_ environment (the code in ati_src_tst.c,
113 removed in the TCS3.2 version we got), but we have repurposed it
114 for our AT-over-RVTMUX implementation in ati_src_rvt.c.
108 115
109 */ 116 */
110 117
111 GLOBAL void aci_aci_cmd_req (T_ACI_CMD_REQ *cmd) 118 GLOBAL void aci_aci_cmd_req (T_ACI_CMD_REQ *cmd)
112 { 119 {
116 if ( cmd->cmd_len < MAX_TRC_LEN ) 123 if ( cmd->cmd_len < MAX_TRC_LEN )
117 { 124 {
118 cmd->cmd_seq[cmd->cmd_len] = '\0'; 125 cmd->cmd_seq[cmd->cmd_len] = '\0';
119 TRACE_EVENT_P1 ("%s", cmd->cmd_seq); 126 TRACE_EVENT_P1 ("%s", cmd->cmd_seq);
120 } 127 }
121 #ifdef DTI 128
122 #ifdef _SIMULATION_ 129 #if defined _SIMULATION_ AND defined DTI
123 if (cmd->cmd_src >= CMD_SRC_EXT && cmd->cmd_src <= MAX_TST_SRC) 130 if (cmd->cmd_src >= CMD_SRC_EXT AND cmd->cmd_src <= MAX_TST_SRC)
124 { 131 {
125 #ifdef FF_ATI_BAT 132 #ifdef FF_ATI_BAT
126 U8 src_id = tst_src_id[cmd->cmd_src - 1]; 133 U8 src_id = tst_src_id[cmd->cmd_src - 1];
127 #endif 134 #endif
128 ati_src_tst_proc_cmd (cmd); 135 ati_src_tst_proc_cmd (cmd);
149 } 156 }
150 else 157 else
151 { 158 {
152 TRACE_EVENT_P1 ("aci_aci_cmd_req(): [WRN] srcId=%d, but must be 0x01 or 0x02", cmd->cmd_src); 159 TRACE_EVENT_P1 ("aci_aci_cmd_req(): [WRN] srcId=%d, but must be 0x01 or 0x02", cmd->cmd_src);
153 } 160 }
154 #endif /* _SIMULATION_ */ 161 #elif 1 //CONFIG_AT_RVTMUX
155 #endif /* DTI */ 162
156 #endif 163 ati_src_rvt_proc_cmd (cmd);
164
165 #endif /* old _SIMULATION_ vs FreeCalypso AT-over-RVTMUX */
166 #endif /* FF_ATI */
157 167
158 PFREE (cmd); 168 PFREE (cmd);
159 169
160 } 170 }
161 171