diff src/aci2/aci/ati_omcompat.c @ 245:3b8d291ed45a

aci2: AT@AUL reimplemented in the new FreeCalypso way
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Jul 2017 04:41:53 +0000
parents b16d79c550a2
children 1badec9097de
line wrap: on
line diff
--- a/src/aci2/aci/ati_omcompat.c	Mon Jul 24 04:15:14 2017 +0000
+++ b/src/aci2/aci/ati_omcompat.c	Mon Jul 24 04:41:53 2017 +0000
@@ -48,7 +48,7 @@
 #include "ati_int.h"
 
 #ifndef _SIMULATION_
-#include "ffs\ffs.h"
+#include "ffs/ffs.h"
 #endif
 
 #ifdef FF_ATI_BAT
@@ -61,24 +61,23 @@
 
 #endif /*FF_ATI_BAT*/
 
-#include "audio\audio_api.h"
+#include "audio/audio_api.h"
 #include "abb.h"
-#include "..\drivers\drv_app\power\power.h"
+#include "../drivers/drv_app/power/power.h"
 
 #ifdef GPRS
 #include "p_mph.h"
 #include "p_mphc.h"
-#include "..\alr\alr_gprs.h"
+#include "../alr/alr_gprs.h"
 #endif
 #include "p_tb.h"
-#include "..\alr\alr.h"
+#include "../alr/alr.h"
 
 /*
  * PURPOSE : @ST command (Configure the sidetone level)
  */
 GLOBAL T_ATI_RSLT atAtST (char *cl, UBYTE srcId)
 {
-	T_ACI_RETURN ret = AT_FAIL;  
 	char tmp[8]={0};
 	INT8 gain = -26;
 	TRACE_FUNCTION("atAtST()");
@@ -98,18 +97,17 @@
 			return (ATI_CMPL);
 		}
 		else
-		{     
+		{
 			cmdCmsError(CMS_ERR_OpNotAllowed);
 			return (ATI_FAIL);
 		}
-	} 
+	}
 }
 
 GLOBAL T_ATI_RSLT queatAtST (char *cl, UBYTE srcId)
 {
 	char *me="+ST: ";
 	INT8 ST1;
-	T_ACI_RETURN ret = AT_FAIL;  
 
 	TRACE_FUNCTION("queatAtST()");
 
@@ -120,57 +118,6 @@
 	io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
 
 	return (ATI_CMPL);
-
-}
-
-/*
- * PURPOSE : @AUL command (Audio table load)
- */
-
-static char tmp[8]={0};
-
-GLOBAL T_ATI_RSLT atAtAUL (char *cl, UBYTE srcId)
-{
-	T_ACI_RETURN ret = AT_FAIL;    
-	T_AUDIO_MODE_LOAD audio_mode_load_parameter;  
-	T_RV_RETURN return_path;
-
-	/* initalize the return path, for this test the return path is an message */
-	return_path.callback_func = NULL;
-	return_path.addr_id = rvf_get_taskid();
-
-	TRACE_FUNCTION("atAtAUL()"); 
-
-	/*
-	 * input functionality
-	 */
-	cl = parse(cl,"s", (LONG)8, tmp);   
-
-	sprintf(audio_mode_load_parameter.audio_mode_filename, "para%s", tmp);
-	
-	if ( audio_mode_load(&audio_mode_load_parameter, return_path) == AUDIO_ERROR )
-		return (ATI_FAIL);
-	else
-		return (ATI_CMPL);
-
-}
-
-GLOBAL T_ATI_RSLT queatAtAUL (char *cl, UBYTE srcId)
-{
-	char *me="@AUL: ";  
-	T_ACI_RETURN ret = AT_FAIL;  
-
-	TRACE_FUNCTION("queatAtAUL()");  
-
-	if (strlen(tmp))
-		sprintf(g_sa,"%s/aud/para%s.cfg",me, tmp);
-	else
-		sprintf(g_sa,"%s",me);  		
-
-	io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-
-	return (ATI_CMPL);
-
 }
 
 /*
@@ -178,15 +125,15 @@
  */
  
 GLOBAL T_ATI_RSLT atAtPOFF (char *cl, UBYTE srcId)
-{		
+{
 	TRACE_FUNCTION("atAtPOFF");
-	
-	sprintf(g_sa,"%s","OK");  		
+
+	sprintf(g_sa,"%s","OK");
 	io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
 
 	ABB_Power_Off();
-	
-	return (ATI_CMPL);	
+
+	return (ATI_CMPL);
 }
 
 /*
@@ -194,12 +141,12 @@
  */
  
 GLOBAL T_ATI_RSLT atAtRST (char *cl, UBYTE srcId)
-{		
-	TRACE_FUNCTION("atAtRST");			
-	
-	Power_OFF_Button();  
-	
-	return (ATI_CMPL);	
+{
+	TRACE_FUNCTION("atAtRST");
+
+	Power_OFF_Button();
+
+	return (ATI_CMPL);
 }
 
 /*