FreeCalypso > hg > tcs211-c139
comparison g23m/condat/com/src/config/gsmdrv.c @ 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 : Driver Table for G23 | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef __GSMDRV_C__ | |
22 #define __GSMDRV_C__ | |
23 #endif | |
24 | |
25 #ifndef NEW_ENTITY | |
26 #define NEW_ENTITY | |
27 #endif | |
28 | |
29 /*==== INCLUDES ===================================================*/ | |
30 | |
31 | |
32 #ifdef _TARGET_ | |
33 #define TI_TRACE | |
34 #endif | |
35 | |
36 | |
37 #include "gdi.h" | |
38 #include "vsi.h" | |
39 #include "pei.h" | |
40 #include "frm_defs.h" | |
41 #include "gsmconst.h" | |
42 #include "frm_types.h" | |
43 | |
44 /*#include "gdi.h" | |
45 #include "pei.h" | |
46 #include "gsmconst.h" | |
47 //#include "frmconst.h" | |
48 #include "frm_defs.h" | |
49 #include "frm_types.h"*/ | |
50 | |
51 /*==== TYPES ======================================================*/ | |
52 | |
53 | |
54 /*==== CONSTANTS ==================================================*/ | |
55 | |
56 #if defined _TARGET_ && !defined PCON | |
57 #define TR_RCV_BUF_SIZE 1024 | |
58 #else | |
59 #define TR_RCV_BUF_SIZE 1024 | |
60 #endif | |
61 | |
62 #define TR_MAX_IND (TR_RCV_BUF_SIZE-1) | |
63 | |
64 /*==== EXTERNALS ==================================================*/ | |
65 | |
66 #ifdef TI_TRACE | |
67 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
68 T_DRV_EXPORT const **DrvInfo ); | |
69 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
70 T_DRV_EXPORT const **DrvInfo ); | |
71 extern USHORT TITRC_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
72 T_DRV_EXPORT const **DrvInfo ); | |
73 #else | |
74 | |
75 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
76 T_DRV_EXPORT const **DrvInfo ); | |
77 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
78 T_DRV_EXPORT const **DrvInfo ); | |
79 extern USHORT SER_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
80 T_DRV_EXPORT const **DrvInfo ); | |
81 extern ULONG SER_DefaultConfig; | |
82 #endif | |
83 | |
84 /*==== VARIABLES ==================================================*/ | |
85 | |
86 ULONG TR_RcvBufferSize = TR_RCV_BUF_SIZE; | |
87 ULONG TR_MaxInd = TR_MAX_IND; | |
88 | |
89 const T_DRV_LIST_ENTRY DrvList[] = | |
90 { | |
91 { NULL, NULL, NULL, NULL }, | |
92 #ifdef TI_TRACE | |
93 { "TIF", TIF_Init, "RCV", "ENABLE_PCON" }, | |
94 { "TR", TR_Init, NULL, NULL }, | |
95 { "TITRC",TITRC_Init, NULL, "" }, | |
96 #else | |
97 { "TIF", TIF_Init, "RCV", "ENABLE_PCON" }, | |
98 { "TR", TR_Init, NULL, NULL }, | |
99 { "SER", SER_Init, NULL, "" }, | |
100 #endif | |
101 { NULL, NULL, NULL, NULL } | |
102 }; | |
103 | |
104 /*==== FUNCTIONS ==================================================*/ | |
105 | |
106 | |
107 int vsi_o_trace (char *caller, ULONG tclass, char *text,...) | |
108 { | |
109 return 0; | |
110 } |