FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/gpf/conf/gpf_tst_drv.c @ 830:56e3d8560d69
L1 audio: vocoder mute functions made independent of AUDIO_TASK
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Wed, 22 Apr 2015 16:30:11 +0000 |
parents | c8e12b7bbd0b |
children |
rev | line source |
---|---|
486
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * This module is our FreeCalypso adaptation of |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * g23m/condat/frame/config/gprsdrv.c from the Leonardo semi-src. |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 * I renamed it from gprsdrv.c to gpf_tst_drv.c because nothing |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 * in this module is specific to the GPRS configuration. |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 */ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 #ifndef __GPRSDRV_C__ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #define __GPRSDRV_C__ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 #include "gpfconf.h" |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 #ifndef _TARGET_ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 #define NEW_ENTITY |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 #ifdef _TARGET_ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 #ifdef FF_TRACE_OVER_MTST |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 #define MTST_TRACE |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 #else |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 #define TI_TRACE |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 #include "gdi.h" |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 #include "vsi.h" |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 #include "pei.h" |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 /* #include "gprsconst.h" */ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 #include "frm_defs.h" |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 #include "frm_types.h" |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
33 /*==== TYPES ======================================================*/ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
34 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
36 /*==== CONSTANTS ==================================================*/ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
38 #if defined _TARGET_ && !defined PCON |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
39 #define TR_RCV_BUF_SIZE 1024 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 #else |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 #define TR_RCV_BUF_SIZE 1024 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
44 #define TR_MAX_IND (TR_RCV_BUF_SIZE-1) |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
46 /*==== EXTERNALS ==================================================*/ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 #ifdef TI_TRACE |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
49 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
53 extern USHORT TITRC_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 #else |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
56 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
57 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
58 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
59 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
60 extern USHORT SER_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
61 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
62 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
63 extern USHORT mux_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
64 T_DRV_EXPORT const **DrvInfo ); |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
65 /*==== VARIABLES ==================================================*/ |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
66 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
67 ULONG TR_RcvBufferSize = TR_RCV_BUF_SIZE; |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
68 ULONG TR_MaxInd = TR_MAX_IND; |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
69 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
70 const T_DRV_LIST_ENTRY DrvList[] = |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
71 { |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
72 { NULL, NULL, NULL, NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
73 #ifdef TI_TRACE |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
74 { "TIF", TIF_Init, "RCV", NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
75 { "TR", TR_Init, NULL, NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
76 { "TITRC",TITRC_Init, NULL, "" }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
77 #else |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
78 #ifdef MTST_TRACE |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
79 { "TIF", TIF_Init, "RCV", NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
80 { "TR", TR_Init, NULL, NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
81 { "MUX", mux_Init, NULL, "" }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
82 #else |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
83 { "TIF", TIF_Init, "RCV", NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
84 { "TR", TR_Init, NULL, NULL }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
85 { "SER", SER_Init, NULL, "" }, |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
86 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
87 #endif |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
88 { NULL, NULL, NULL, NULL } |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
89 }; |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
90 |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
91 int vsi_o_trace (char *caller, ULONG tclass, char *text,...) |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
92 { |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
93 return 0; |
c8e12b7bbd0b
gsm-fw/gpf/conf/gpf_tst_drv.c: added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
94 } |