FreeCalypso > hg > tcs211-fcmodem
comparison gpf/INC/frm_glob.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 | File: frm_glob.h | |
4 +------------------------------------------------------------------------------ | |
5 | Copyright 2002 Texas Instruments Berlin, AG | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments Berlin, AG | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments Berlin, AG. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose : Global frame tables | |
17 +----------------------------------------------------------------------------- | |
18 */ | |
19 | |
20 #ifndef FRM_GLOB_H | |
21 #define FRM_GLOB_H | |
22 | |
23 /*==== INCLUDES =============================================================*/ | |
24 | |
25 #include "frm_types.h" | |
26 | |
27 /*==== CONSTANTS ============================================================*/ | |
28 | |
29 | |
30 /*==== TYPES ================================================================*/ | |
31 | |
32 /*==== VARIABLES ================================================================*/ | |
33 | |
34 #ifndef CONFIG_MODULE | |
35 extern USHORT MaxEntities; | |
36 extern USHORT MaxCommunications; | |
37 extern USHORT MaxSimultaneousTimer; | |
38 extern USHORT MaxTimer; | |
39 extern USHORT MaxSemaphores; | |
40 extern USHORT NumberOfPPMPartitions; | |
41 extern ULONG MaxPrimPartSize; | |
42 extern USHORT TextTracePartitionSize; | |
43 extern T_VOID_STRUCT *processed_prim[]; | |
44 extern T_VOID_STRUCT *freed_prim[]; | |
45 extern T_HANDLE e_running[]; | |
46 extern T_FRM_TASK_TABLE_ENTRY pf_TaskTable[]; | |
47 extern ULONG TraceMask[]; | |
48 extern char TracesAborted[]; | |
49 extern char PrimAborted[]; | |
50 extern char route_desclist[]; | |
51 extern T_HANDLE TimerHandleField[]; | |
52 | |
53 #if !defined _TARGET_ && !defined _TOOLS_ | |
54 extern char pcheck_active[]; | |
55 #endif | |
56 | |
57 #else /* CONFIG_MODULE */ | |
58 | |
59 /* -------------- S H A R E D - BEGIN ---------------- */ | |
60 #ifdef _TOOLS_ | |
61 #pragma data_seg("FRAME_SHARED") | |
62 #endif | |
63 | |
64 #ifndef DATA_INT_RAM | |
65 | |
66 /* declare on pointer for each entity for ccd error handling */ | |
67 struct ccd_task_table; | |
68 struct ccd_task_table* ccd_task_list[MAX_ENTITIES+1]; | |
69 | |
70 USHORT MaxEntities = MAX_ENTITIES; | |
71 USHORT MaxTimer = MAX_TIMER; | |
72 #ifndef _TOOLS_ | |
73 /* | |
74 * This way of setting the TST and RCV stacksize is chosen to keep it backwardscompatible, | |
75 * i.e. not change the behavior if the stacksizes are not define in the configuration | |
76 * file xxxconst.h. | |
77 */ | |
78 #ifdef TSTSND_STACK_SIZE | |
79 const USHORT TST_SndStacksize = TSTSND_STACK_SIZE; | |
80 #else | |
81 const USHORT TST_SndStacksize = 0; | |
82 #endif | |
83 #ifdef TSTRCV_STACK_SIZE | |
84 const USHORT TST_RcvStacksize = TSTRCV_STACK_SIZE; | |
85 #else | |
86 const USHORT TST_RcvStacksize = 0; | |
87 #endif | |
88 | |
89 #endif /* _TOOLS_ */ | |
90 | |
91 T_FRM_TASK_TABLE_ENTRY pf_TaskTable [ MAX_ENTITIES + 1 ]={0}; | |
92 ULONG *Routing [ MAX_ENTITIES + 1 ]={0}; | |
93 ULONG TraceMask [ MAX_ENTITIES + 1 ]={0}; | |
94 char TracesAborted [ MAX_ENTITIES + 1 ]={0}; | |
95 char PrimAborted [ MAX_ENTITIES + 1 ]={0}; | |
96 #ifdef PRIM_AUTO_FREE | |
97 T_VOID_STRUCT *processed_prim [ MAX_ENTITIES + 1 ]={0}; | |
98 T_VOID_STRUCT *freed_prim [ MAX_ENTITIES + 1 ]={0}; | |
99 #endif | |
100 T_HANDLE e_running [ MAX_ENTITIES + 1 ]={0}; | |
101 char route_desclist [ MAX_ENTITIES + 1 ]={0}; | |
102 T_DRV_TABLE_ENTRY DrvTable [ MAX_TST_DRV + 1 ]={0}; | |
103 T_HANDLE TimerHandleField [ MAX_TIMER + 1 ]={0}; | |
104 | |
105 #if !defined _TARGET_ && !defined _TOOLS_ | |
106 char pcheck_active [ MAX_ENTITIES + 1 ]={0}; | |
107 #endif | |
108 | |
109 #endif /* DATA_INT_RAM */ | |
110 | |
111 #ifdef _TOOLS_ | |
112 #pragma data_seg() | |
113 #endif | |
114 /* -------------- S H A R E D - END ---------------- */ | |
115 | |
116 #endif /* CONFIG_MODULE */ | |
117 | |
118 #endif |