annotate src/g23m-aci/aci/ati_omcompat.c @ 381:c6823ed06f9c

doc/Compiling: update for C11x and for the speed-up trick
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 13 Jan 2018 21:10:08 +0000
parents 5b2ebc94cae4
children 5e39123540e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
293
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This module implements those AT commands that were originally invented
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * by Openmoko and have been retained in FreeCalypso.
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #ifndef ATI_OMCOMPAT_C
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 #define ATI_OMCOMPAT_C
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include "aci_all.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 #include <ctype.h>
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 #include <string.h>
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 #include "aci_cmh.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 #include "ati_cmd.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 #include "aci_cmd.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 #include "aci_io.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 #include "aci_cmd.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 #include "l4_tim.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 #include "line_edit.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 #include "aci_lst.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 #include "pcm.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 #include "audio.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 #include "aci.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 #include "rx.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 #include "pwr.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 #include "l4_tim.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 #ifdef GPRS
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 #ifdef DTI
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 #include "dti.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 #include "dti_conn_mng.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 #include "dti_cntrl_mng.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 #endif /* DTI */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 #include "gaci.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 #include "gaci_cmh.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 #include "gaci_cmd.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 #endif /* GPRS */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 #include "aci_mem.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 #include "aci_prs.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 #include "ati_int.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 #ifndef _SIMULATION_
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 #include "ffs/ffs.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 #endif
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50 #ifdef FF_ATI_BAT
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
51
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
52 #include "typedefs.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
53 #include "gdd.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
54 #include "bat.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
55
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
56 #include "ati_bat.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
57
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
58 #endif /*FF_ATI_BAT*/
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
59
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
60 #include "audio/audio_api.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
61 #include "abb.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
62 #include "dar/dar_api.h"
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
63
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
64 /*
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 * PURPOSE : @ST command (Configure the sidetone level)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
66 */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
67 GLOBAL T_ATI_RSLT atAtST (char *cl, UBYTE srcId)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
68 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69 char tmp[8]={0};
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 INT8 gain = -26;
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
71 TRACE_FUNCTION("atAtST()");
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
72
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
73 /*
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
74 * input functionality
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
75 */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
76 cl = parse(cl,"s", (LONG)8, tmp);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
77
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
78 gain = atoi(tmp);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
79
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
80 if ( cl )
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
81 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
82 if ( gain == -23 || gain == -20 || gain == -17 || gain == -14 || gain == -11 || gain == -8 || gain == -5 || gain == -2 || gain == 1 || gain == -26 )
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
83 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
84 Side_Tone_Write(gain);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
85 return (ATI_CMPL);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
86 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
87 else
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
88 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
89 cmdCmsError(CMS_ERR_OpNotAllowed);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
90 return (ATI_FAIL);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
91 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
92 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
93 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
94
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
95 GLOBAL T_ATI_RSLT queatAtST (char *cl, UBYTE srcId)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
96 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
97 char *me="+ST: ";
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
98 INT8 ST1;
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
99
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
100 TRACE_FUNCTION("queatAtST()");
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
101
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
102 ST1 = Side_Tone_Read();
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
103
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
104 sprintf(g_sa,"%s%d",me,ST1);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
105
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
106 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
107
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
108 return (ATI_CMPL);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
109 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
110
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
111 /*
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
112 * PURPOSE : @POFF command (Power Off GSM Modem)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
113 */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
114
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
115 GLOBAL T_ATI_RSLT atAtPOFF (char *cl, UBYTE srcId)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
116 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
117 TRACE_FUNCTION("atAtPOFF");
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
118
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
119 sprintf(g_sa,"%s","OK");
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
120 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
121
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
122 ABB_Power_Off();
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
123
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
124 return (ATI_CMPL);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
125 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
126
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
127 /*
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
128 * PURPOSE : @RST command (Reset GSM Modem)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
129 */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
130
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
131 GLOBAL T_ATI_RSLT atAtRST (char *cl, UBYTE srcId)
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
132 {
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
133 TRACE_FUNCTION("atAtRST");
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
134
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
135 dar_reset_system();
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
136
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
137 return (ATI_CMPL);
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
138 }
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
139
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
140 #endif /* ATI_OMCOMPAT_C */
5b2ebc94cae4 aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
141