comparison src/g23m-aci/aci/aci_csf.c @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
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 "aci_all.h"
26
27 #include "aci_cmh.h"
28
29 #ifdef FF_ATI
30 #include "ati_cmd.h"
31 #endif
32
33 #include "aci_cmd.h"
34 #include "aci.h"
35
36 /*==== CONSTANTS ==================================================*/
37
38 /*==== TYPES ======================================================*/
39
40 /*==== EXPORT =====================================================*/
41
42 /*==== VARIABLES ==================================================*/
43
44 /*==== FUNCTIONS ==================================================*/
45 /*
46 +--------------------------------------------------------------------+
47 | PROJECT : GSM-F&D (8411) MODULE : ACI_CSF |
48 | STATE : code ROUTINE : aci_init_timer |
49 +--------------------------------------------------------------------+
50
51 PURPOSE : Initialize the ACI timer.
52
53 */
54
55 GLOBAL void aci_init_timer (void)
56 {
57 TRACE_FUNCTION ("aci_init_timer()");
58
59 #if !defined (NEW_FRAME)
60
61 #ifdef FF_ATI
62 t_ring_handle = vsi_t_open (VSI_CALLER TRING );
63 #endif
64 t_ect_handle = vsi_t_open (VSI_CALLER TMPTY );
65 t_mpty_handle = vsi_t_open (VSI_CALLER TMPTY );
66 t_dtmf_handle = vsi_t_open (VSI_CALLER TDTMF );
67
68 #ifdef FAX_AND_DATA
69 t_fit_handle = vsi_t_open (VSI_CALLER TFIT );
70 #endif
71
72 #endif
73 /* AoC timers are created if AoC is really supported */
74 }
75
76 /*
77 +--------------------------------------------------------------------+
78 | PROJECT : GSM-F&D (8411) MODULE : ACI_CSF |
79 | STATE : code ROUTINE : aci_exit_timer |
80 +--------------------------------------------------------------------+
81
82 PURPOSE : Closes all timer.
83
84 */
85
86 GLOBAL void aci_exit_timer (void)
87 {
88 TRACE_FUNCTION ("aci_exit_timer()");
89
90 #if !defined (NEW_FRAME)
91
92 #ifdef FF_ATI
93 vsi_t_close (VSI_CALLER t_ring_handle);
94 t_ring_handle = VSI_ERROR;
95 #endif
96
97 #ifdef FAX_AND_DATA
98 vsi_t_close (VSI_CALLER t_fit_handle);
99 t_fit_handle = VSI_ERROR;
100 #endif
101
102 #endif
103 }
104
105 #endif
106