FreeCalypso > hg > freecalypso-citrine
comparison g23m-aci/aci/aci_tim.c @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-F&D (8411) | |
4 | Modul : ACI_TIM | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : This Modul defines the timer handling functions | |
18 | for the AT Command Interpreter | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef ACI_TIM_C | |
23 #define ACI_TIM_C | |
24 | |
25 #include "config.h" | |
26 #include "fixedconf.h" | |
27 #include "condat-features.h" | |
28 #include "aci_conf.h" | |
29 | |
30 #include "aci_all.h" | |
31 | |
32 #include "aci_cmh.h" | |
33 #include "ati_cmd.h" | |
34 #include "aci_cmd.h" | |
35 | |
36 #ifdef FAX_AND_DATA | |
37 #include "aci_fd.h" | |
38 #endif | |
39 | |
40 #include "aci.h" | |
41 #include "aoc.h" | |
42 #include "psa.h" | |
43 #include "cmh.h" | |
44 | |
45 /*==== EXPORT =====================================================*/ | |
46 | |
47 /*==== PRIVAT =====================================================*/ | |
48 | |
49 /*==== VARIABLES ==================================================*/ | |
50 | |
51 /* | |
52 +--------------------------------------------------------------------+ | |
53 | PROJECT : GSM-F&D (8411) MODULE : ACI_TIM | | |
54 | STATE : code ROUTINE : tim_exec_timeout | | |
55 +--------------------------------------------------------------------+ | |
56 | |
57 PURPOSE : execute timeout function depending on the timer | |
58 | |
59 */ | |
60 GLOBAL void tim_exec_timeout (USHORT index) | |
61 { | |
62 #if defined SMI | |
63 /* | |
64 * Check SMI Timer | |
65 */ | |
66 if (smi_timeout (index)) | |
67 return; | |
68 #endif | |
69 | |
70 #if defined MFW | |
71 /* | |
72 * Check MFW Timer | |
73 */ | |
74 if (mfw_timeout (index)) | |
75 return; | |
76 #endif | |
77 | |
78 /* | |
79 * check Advice of Charge Timer | |
80 */ | |
81 if (aoc_timeout (index)) | |
82 return; | |
83 | |
84 #ifdef FF_ATI | |
85 /* | |
86 * check Command Interpreter Timer | |
87 */ | |
88 if (aci_timeout (index)) | |
89 return; | |
90 #endif | |
91 | |
92 /* | |
93 * check Command Handler Timer | |
94 */ | |
95 if (cmh_timeout (index)) | |
96 return; | |
97 | |
98 /* | |
99 * check Command Handler Timer | |
100 */ | |
101 if (psa_timeout (index)) | |
102 return; | |
103 } | |
104 | |
105 #endif | |
106 |