comparison g23m-aci/aci/aci_csf.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_CSF
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 custom specific functions for the
18 | AT Command Interpreter
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifndef ACI_CSF_C
23 #define ACI_CSF_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
34 #ifdef FF_ATI
35 #include "ati_cmd.h"
36 #endif
37
38 #include "aci_cmd.h"
39 #include "aci.h"
40
41 /*==== CONSTANTS ==================================================*/
42
43 /*==== TYPES ======================================================*/
44
45 /*==== EXPORT =====================================================*/
46
47 /*==== VARIABLES ==================================================*/
48
49 /*==== FUNCTIONS ==================================================*/
50 /*
51 +--------------------------------------------------------------------+
52 | PROJECT : GSM-F&D (8411) MODULE : ACI_CSF |
53 | STATE : code ROUTINE : aci_init_timer |
54 +--------------------------------------------------------------------+
55
56 PURPOSE : Initialize the ACI timer.
57
58 */
59
60 GLOBAL void aci_init_timer (void)
61 {
62 TRACE_FUNCTION ("aci_init_timer()");
63
64 #if !defined (NEW_FRAME)
65
66 #ifdef FF_ATI
67 t_ring_handle = vsi_t_open (VSI_CALLER TRING );
68 #endif
69 t_ect_handle = vsi_t_open (VSI_CALLER TMPTY );
70 t_mpty_handle = vsi_t_open (VSI_CALLER TMPTY );
71 t_dtmf_handle = vsi_t_open (VSI_CALLER TDTMF );
72
73 #ifdef FAX_AND_DATA
74 t_fit_handle = vsi_t_open (VSI_CALLER TFIT );
75 #endif
76
77 #endif
78 /* AoC timers are created if AoC is really supported */
79 }
80
81 /*
82 +--------------------------------------------------------------------+
83 | PROJECT : GSM-F&D (8411) MODULE : ACI_CSF |
84 | STATE : code ROUTINE : aci_exit_timer |
85 +--------------------------------------------------------------------+
86
87 PURPOSE : Closes all timer.
88
89 */
90
91 GLOBAL void aci_exit_timer (void)
92 {
93 TRACE_FUNCTION ("aci_exit_timer()");
94
95 #if !defined (NEW_FRAME)
96
97 #ifdef FF_ATI
98 vsi_t_close (VSI_CALLER t_ring_handle);
99 t_ring_handle = VSI_ERROR;
100 #endif
101
102 #ifdef FAX_AND_DATA
103 vsi_t_close (VSI_CALLER t_fit_handle);
104 t_fit_handle = VSI_ERROR;
105 #endif
106
107 #endif
108 }
109
110 #endif
111