FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/com/src/config/gsmconst.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : | |
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 : Constants to determine the dimensions of the frame | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef GSMCONST_H | |
22 #define GSMCONST_H | |
23 | |
24 /*==== CONSTANTS ============================================================*/ | |
25 | |
26 #ifndef _TARGET_ | |
27 #define BASE_ENTITIES 17 | |
28 #define BASE_OS_TASKS 15 | |
29 #else | |
30 #define BASE_ENTITIES 14 | |
31 #define BASE_OS_TASKS 12 | |
32 #endif /* #ifndef _TARGET_ */ | |
33 | |
34 #ifdef FAX_AND_DATA | |
35 #ifdef _TARGET_ | |
36 #define FAX_AND_DATA_ADD_ENTITIES 4 | |
37 #define FAX_AND_DATA_ADD_OS_TASKS 2 | |
38 #else | |
39 #define FAX_AND_DATA_ADD_ENTITIES 5 | |
40 #define FAX_AND_DATA_ADD_OS_TASKS 3 | |
41 #endif /* #ifndef _TARGET_ */ | |
42 #else | |
43 #define FAX_AND_DATA_ADD_ENTITIES 0 | |
44 #define FAX_AND_DATA_ADD_OS_TASKS 0 | |
45 #endif /* else, #ifdef FAX_AND_DATA */ | |
46 | |
47 #if defined(FF_TCP_IP) && !defined(_TARGET_) | |
48 #define FF_TCP_IP_ADD_ENTITIES 1 | |
49 #define FF_TCP_IP_ADD_OS_TASKS 1 | |
50 #else | |
51 #define FF_TCP_IP_ADD_ENTITIES 0 | |
52 #define FF_TCP_IP_ADD_OS_TASKS 0 | |
53 #endif /* else, #if defined(FF_TCP_IP) && !defined(_TARGET_) */ | |
54 | |
55 #ifdef FF_EOTD | |
56 #define FF_EOTD_ADD_ENTITIES 2 | |
57 #define FF_EOTD_ADD_OS_TASKS 1 | |
58 #else | |
59 #define FF_EOTD_ADD_ENTITIES 0 | |
60 #define FF_EOTD_ADD_OS_TASKS 0 | |
61 #endif /* else, #ifdef FF_EOTD */ | |
62 | |
63 #ifdef FF_WAP | |
64 #ifndef UDP_NO_WAP | |
65 #define FF_WAP_ADD_ENTITIES 4 | |
66 #define FF_WAP_ADD_OS_TASKS 4 | |
67 #else | |
68 #define FF_WAP_ADD_ENTITIES 3 | |
69 #define FF_WAP_ADD_OS_TASKS 3 | |
70 #endif /* else, #ifndef UDP_NO_WAP */ | |
71 #else | |
72 #define FF_WAP_ADD_ENTITIES 0 | |
73 #define FF_WAP_ADD_OS_TASKS 0 | |
74 #endif /* FF_WAP */ | |
75 | |
76 #ifdef BT_ADAPTER | |
77 #define BT_ADAPTER_ADD_ENTITIES 1 | |
78 #define BT_ADAPTER_ADD_OS_TASKS 1 | |
79 #else | |
80 #define BT_ADAPTER_ADD_ENTITIES 0 | |
81 #define BT_ADAPTER_ADD_OS_TASKS 0 | |
82 #endif /* else, #ifdef BT_ADAPTER */ | |
83 | |
84 #define MAX_ENTITIES (BASE_ENTITIES+\ | |
85 FAX_AND_DATA_ADD_ENTITIES+\ | |
86 FF_EOTD_ADD_ENTITIES+\ | |
87 FF_WAP_ADD_ENTITIES+\ | |
88 BT_ADAPTER_ADD_ENTITIES) | |
89 | |
90 #define MAX_OS_TASKS (BASE_OS_TASKS+\ | |
91 FAX_AND_DATA_ADD_OS_TASKS+\ | |
92 FF_EOTD_ADD_OS_TASKS+\ | |
93 FF_WAP_ADD_OS_TASKS+\ | |
94 BT_ADAPTER_ADD_OS_TASKS) | |
95 | |
96 /* Detecting GSM only lite to compile using minimal settings */ | |
97 #if !defined(FAX_AND_DATA) && !defined(FF_TCP_IP) && !defined(FF_EOTD) &&\ | |
98 !defined(FF_WAP) && !defined(BT_ADAPTER) | |
99 #define GO_LITE 1 | |
100 #endif | |
101 | |
102 #define MAX_TIMER 128 | |
103 #ifdef GO_LITE | |
104 #define MAX_SIMULTANEOUS_TIMER 20 | |
105 #else | |
106 #define MAX_SIMULTANEOUS_TIMER 40 | |
107 #endif /* else, #ifdef GO_LITE */ | |
108 | |
109 #define MAX_OSISRS 0 | |
110 | |
111 #define MAX_SEMAPHORES 13 | |
112 #define MAX_COMMUNICATIONS MAX_OS_TASKS | |
113 | |
114 #define MAX_POOL_GROUPS 6 | |
115 #define MAX_MEMORY_POOLS 6 | |
116 | |
117 #undef GO_LITE /* We are not going to use this definition globally */ | |
118 | |
119 #endif /* #ifndef GSMCONST_H */ |