FreeCalypso > hg > fc-magnetite
comparison src/condat3/frame/config/gprsconst.h @ 18:c8bd5a927942
src/condat3: import of "condat" tree from TCS3.2, pruned
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2016 21:25:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:6323e661f2ed | 18:c8bd5a927942 |
---|---|
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 GPRSCONST_H | |
22 #define GPRSCONST_H | |
23 #include "chipset.cfg" | |
24 #include "swconfig.cfg" | |
25 | |
26 #ifdef MAX_EVENT_GROUPS | |
27 #undef MAX_EVENT_GROUPS | |
28 #endif | |
29 | |
30 #if (CHIPSET==15) && (REMU==1) | |
31 #if (LOCOSTO_LITE==1) | |
32 #define MAX_REMU_SIMULTANEOUS_TIMER 15 | |
33 #define MAX_REMU_ENTITIES 15 | |
34 #define MAX_REMU_OS_TASKS 15 | |
35 #define MAX_REMU_SEMAPHORES 15 | |
36 #define MAX_REMU_EVENT_GROUPS 15 | |
37 #else | |
38 #define MAX_REMU_SIMULTANEOUS_TIMER 30 | |
39 #define MAX_REMU_ENTITIES 30 | |
40 #define MAX_REMU_OS_TASKS 30 | |
41 #if (RELIANCE_FS==1) | |
42 #if ((DATALIGHT_NOR==1) && (DATALIGHT_NAND==1)) | |
43 #define MAX_REMU_SEMAPHORES 90 | |
44 #else | |
45 #define MAX_REMU_SEMAPHORES 75 | |
46 #endif | |
47 #else | |
48 #define MAX_REMU_SEMAPHORES 55 | |
49 #endif | |
50 #define MAX_REMU_EVENT_GROUPS 30 | |
51 #endif | |
52 #define MAX_EVENT_GROUPS ( MAX_REMU_ENTITIES + 5 ) | |
53 #else | |
54 #define MAX_REMU_SIMULTANEOUS_TIMER 0 | |
55 #define MAX_REMU_ENTITIES 0 | |
56 #define MAX_REMU_OS_TASKS 0 | |
57 #define MAX_REMU_SEMAPHORES 0 | |
58 #define MAX_REMU_EVENT_GROUPS 0 | |
59 #define MAX_EVENT_GROUPS 0 | |
60 #endif | |
61 | |
62 | |
63 | |
64 #ifdef BTS /* BTU is included */ | |
65 #ifdef BTT /* BTAV is included */ | |
66 #ifdef FMS | |
67 #define BT_ADAPTER_ADD_ENTITIES 9 | |
68 #define BT_ADAPTER_ADD_OS_TASKS 9 | |
69 #define BT_ADAPTER_ADD_SEMAPHORES 10 | |
70 #else | |
71 #define BT_ADAPTER_ADD_ENTITIES 8 | |
72 #define BT_ADAPTER_ADD_OS_TASKS 8 | |
73 #define BT_ADAPTER_ADD_SEMAPHORES 9 | |
74 #endif | |
75 #else | |
76 #define BT_ADAPTER_ADD_ENTITIES 6 | |
77 #define BT_ADAPTER_ADD_OS_TASKS 6 | |
78 #define BT_ADAPTER_ADD_SEMAPHORES 2 | |
79 #endif | |
80 #else | |
81 #define BT_ADAPTER_ADD_ENTITIES 3 | |
82 #define BT_ADAPTER_ADD_OS_TASKS 3 | |
83 #define BT_ADAPTER_ADD_SEMAPHORES 0 | |
84 #endif | |
85 | |
86 | |
87 | |
88 /*==== CONSTANTS ============================================================*/ | |
89 | |
90 #define MAX_TIMER 231 | |
91 #define MAX_SIMULTANEOUS_TIMER (50 + MAX_REMU_SIMULTANEOUS_TIMER) | |
92 | |
93 | |
94 #ifdef FF_BAT /* with GDD_DIO entity */ | |
95 #if(PSP_STANDALONE==0) | |
96 #define MAX_ENTITIES (39 + MAX_REMU_ENTITIES + BT_ADAPTER_ADD_ENTITIES) | |
97 #define MAX_OS_TASKS (33 + MAX_REMU_OS_TASKS + BT_ADAPTER_ADD_OS_TASKS) | |
98 #else | |
99 #define MAX_ENTITIES (2 + MAX_REMU_ENTITIES + 0) | |
100 #define MAX_OS_TASKS (2 + MAX_REMU_OS_TASKS + 0) | |
101 #endif | |
102 #define MAX_SEMAPHORES (14+ MAX_REMU_SEMAPHORES + BT_ADAPTER_ADD_SEMAPHORES) | |
103 #else | |
104 #if(PSP_STANDALONE==0) | |
105 #define MAX_ENTITIES (38 + MAX_REMU_ENTITIES + BT_ADAPTER_ADD_ENTITIES) | |
106 #define MAX_OS_TASKS (32 + MAX_REMU_OS_TASKS + BT_ADAPTER_ADD_OS_TASKS) | |
107 #else | |
108 #define MAX_ENTITIES (2 + MAX_REMU_ENTITIES + 0) | |
109 #define MAX_OS_TASKS (2 + MAX_REMU_OS_TASKS + 0) | |
110 #endif | |
111 #define MAX_SEMAPHORES (13 + MAX_REMU_SEMAPHORES + BT_ADAPTER_ADD_SEMAPHORES) | |
112 #endif /* FF_BAT */ | |
113 | |
114 #define MAX_OSISRS 0 | |
115 #define MAX_COMMUNICATIONS MAX_OS_TASKS | |
116 #define MAX_POOL_GROUPS 7 | |
117 #define MAX_MEMORY_POOLS 7 | |
118 | |
119 #endif /* GPRSCONST_H */ | |
120 | |
121 | |
122 |