comparison src/g23m-aci/aci/aci_tim.c @ 162:53929b40109c

src/g23m-aci: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Oct 2016 02:02:43 +0000
parents
children
comparison
equal deleted inserted replaced
161:4557e2a9c18e 162:53929b40109c
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 "aci_all.h"
26
27 #include "aci_cmh.h"
28 #include "ati_cmd.h"
29 #include "aci_cmd.h"
30
31 #ifdef FAX_AND_DATA
32 #include "aci_fd.h"
33 #endif
34
35 #include "aci.h"
36 #include "aoc.h"
37 #include "psa.h"
38 #include "cmh.h"
39
40 /*==== EXPORT =====================================================*/
41
42 /*==== PRIVAT =====================================================*/
43
44 /*==== VARIABLES ==================================================*/
45
46 /*
47 +--------------------------------------------------------------------+
48 | PROJECT : GSM-F&D (8411) MODULE : ACI_TIM |
49 | STATE : code ROUTINE : tim_exec_timeout |
50 +--------------------------------------------------------------------+
51
52 PURPOSE : execute timeout function depending on the timer
53
54 */
55 GLOBAL void tim_exec_timeout (USHORT index)
56 {
57 #if defined SMI
58 /*
59 * Check SMI Timer
60 */
61 if (smi_timeout (index))
62 return;
63 #endif
64
65 #if defined MFW
66 /*
67 * Check MFW Timer
68 */
69 if (mfw_timeout (index))
70 return;
71 #endif
72
73 /*
74 * check Advice of Charge Timer
75 */
76 if (aoc_timeout (index))
77 return;
78
79 #ifdef FF_ATI
80 /*
81 * check Command Interpreter Timer
82 */
83 if (aci_timeout (index))
84 return;
85 #endif
86
87 /*
88 * check Command Handler Timer
89 */
90 if (cmh_timeout (index))
91 return;
92
93 /*
94 * check Command Handler Timer
95 */
96 if (psa_timeout (index))
97 return;
98 }
99
100 #endif
101