diff src/g23m-aci/aci/aci_aci.c @ 208:ab79cf3c29a5

AT-over-RVTMUX mechanism ported over to the TCS3.2 version of ACI
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Oct 2016 17:15:08 +0000
parents 53929b40109c
children
line wrap: on
line diff
--- a/src/g23m-aci/aci/aci_aci.c	Fri Oct 14 16:11:13 2016 +0000
+++ b/src/g23m-aci/aci/aci_aci.c	Fri Oct 14 17:15:08 2016 +0000
@@ -105,8 +105,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.
 
 */
 
@@ -120,8 +127,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
@@ -153,9 +160,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 1 //CONFIG_AT_RVTMUX
+
+  ati_src_rvt_proc_cmd (cmd);
+
+#endif	/* old _SIMULATION_ vs FreeCalypso AT-over-RVTMUX */
+#endif	/* FF_ATI */
 
   PFREE (cmd);