comparison gsm-fw/g23m-gsm/mm/cus_mm.h @ 673:2f7df7a314f8

gsm-fw/g23m-gsm subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 28 Sep 2014 23:20:04 +0000
parents
children
comparison
equal deleted inserted replaced
672:0dc6f9e8e980 673:2f7df7a314f8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (8410)
4 | Modul : CUS_MM
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 : Custom dependent definitions for MM of the
18 | mobile station
19 |
20 | Use this header for definitions to integrate the
21 | protocol stack entity MM in your target system !
22 +-----------------------------------------------------------------------------
23 */
24
25 #ifndef CUS_MM_H
26 #define CUS_MM_H
27
28 /*==== CONSTANTS ==================================================*/
29 /*
30 * TIMER_VALUES
31 *
32 * Description : The constants define the timer values
33 * for the MM timer TXXX depending on the various
34 * channel types and service access point identifiers.
35 * If your target system uses other units please
36 * change the values.
37 */
38
39 #if defined (NEW_FRAME)
40 /*
41 * all timer values in milliseconds
42 */
43 #define T_3210_VALUE 20000
44 #define T_3211_VALUE 15000
45 #define T_3213_VALUE 4000
46 #define T_3220_VALUE 5000
47 #define T_3230_VALUE 15000
48 #define T_3240_VALUE 10000
49 #ifdef REL99
50 #define T_3241_VALUE 300000
51 #endif
52 #define T_REG_VALUE 360000
53 #define T_T3212_TIC_VALUE 10000
54
55 #define TICS_PER_DECIHOURS (1000*60*6)
56
57 #else
58
59 #if defined (_TMS470)
60
61 /*
62 * Unit is 4.615 ms (TDMA frame)
63 */
64 #define T_3210_VALUE 4337
65 #define T_3211_VALUE 3250
66 #define T_3213_VALUE 867
67 #define T_3220_VALUE 1083
68 #define T_3230_VALUE 3250
69 #define T_3240_VALUE 2167
70 #ifdef REL99
71 #define T_3241_VALUE 65005
72 #endif
73 #define T_REG_VALUE 78006
74 #define T_T3212_TIC_VALUE 2168
75
76 #define TICS_PER_DECIHOURS (216*60*6)
77
78 #else
79
80 /*
81 * Unit is ca. 50 ms
82 */
83 #define T_3210_VALUE 400
84 #define T_3211_VALUE 300
85 #define T_3213_VALUE 80
86 #define T_3220_VALUE 100
87 #define T_3230_VALUE 300
88 #define T_3240_VALUE 200
89 #ifdef REL99
90 #define T_3241_VALUE 6000
91 #endif
92 #define T_REG_VALUE 7200
93 #define T_T3212_TIC_VALUE 200
94
95 #define TICS_PER_DECIHOURS (20*60*6)
96
97 #endif /* _TMS470 */
98
99 #endif /* NEW_FRAME */
100 /*
101 * TIMER IDENTIFIER
102 *
103 * Description : The constants define the identifier of the
104 * timer resources of MM.
105 */
106
107 #define T_REG_NAME "T_REG"
108 #define T3210_NAME "T3210"
109 #define T3211_NAME "T3211"
110 #define T3212_NAME "T3212"
111 #define T3213_NAME "T3213"
112 #define T3220_NAME "T3220"
113 #define T3230_NAME "T3230"
114 #define T3240_NAME "T3240"
115 #ifdef REL99
116 #define T3241_NAME "T3241"
117 #endif
118 #define T_HPLMN_NAME "T_HPLMN"
119
120 /*
121 * MAX_MM_TIMER
122 *
123 * Description : The constant define the number of timer
124 * available in the timer pool.
125 *
126 * NOTE: This constant is only used for old frame.
127 */
128
129 #define MAX_MM_TIMER 5
130
131 /*
132 * MAX_STORE_ENTRIES
133 *
134 * Description : The constant defines the number of store
135 * entries of the call establishment and timeout
136 * administration in MM.
137 * available in the timer pool.
138 */
139
140 #define MAX_STORE_ENTRIES 10
141
142 /*
143 * INTERNAL REDIAL
144 *
145 * Description : If no test SIM card is inserted, but a SIM card an
146 * internal redial is tried if the connection establishment
147 * has failed due to random access failed. The constant
148 * define the number of reattempts.
149 */
150
151 #define INTERNAL_REDIAL 1
152
153 /*
154 * VERSION
155 *
156 * Description : The constants define the type and the value
157 * of a version identification. The version
158 * is part of the monitor struct.
159 */
160
161
162 #define T_VERSION char
163 #define VERSION_MM "MM 1.0"
164
165 /*
166 * VSI_CALLER
167 *
168 * Description : For multithread applications the constant VSI_CALLER
169 * must be defined to identify the calling thread of the
170 * VSI-Interface. This must be done correponding to the
171 * type of T_VSI_CALLER in VSI.H. The comma symbol is
172 * neccessary because the vsi-functions are called
173 * like this vsi_xxx (VSI_CALLER par2, par3 ...)
174 */
175
176 #if defined (NEW_FRAME)
177
178 #ifdef OPTION_MULTITHREAD
179 #define VSI_CALLER mm_handle,
180 #define VSI_CALLER_SINGLE mm_handle
181 #else
182 #define VSI_CALLER
183 #define VSI_CALLER_SINGLE
184 #endif
185
186 #else
187
188 #ifdef OPTION_MULTITHREAD
189 #define VSI_CALLER MM_NAME,
190 #define VSI_CALLER_SINGLE MM_NAME
191 #else
192 #define VSI_CALLER
193 #define VSI_CALLER_SINGLE
194 #endif
195 #endif /*NEW_FRAME */
196
197 #endif
198