FreeCalypso > hg > freecalypso-citrine
comparison services/etm/etm_misc.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /******************************************************************************** | |
2 * Enhanced TestMode (ETM) | |
3 * @file etm_misc.h | |
4 * | |
5 * @author Kim T. Peteren (ktp@ti.com) | |
6 * @version 0.1 | |
7 * | |
8 | |
9 * | |
10 * History: | |
11 * | |
12 * Date Modification | |
13 * ------------------------------------ | |
14 * 16/06/2003 Creation | |
15 * | |
16 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved | |
17 *********************************************************************************/ | |
18 | |
19 | |
20 #ifndef _ETM_MISC_H_ | |
21 #define _ETM_MISC_H_ | |
22 | |
23 | |
24 /****************************************************************************** | |
25 * Usefull Header | |
26 *****************************************************************************/ | |
27 | |
28 #include "etm_config.h" | |
29 | |
30 #include "../../L1/include/l1_confg.h" | |
31 | |
32 /* Riviera useful header */ | |
33 #include "../../riviera/rv/rv_general.h" | |
34 #include "../../riviera/rvm/rvm_gen.h" | |
35 #include "../../riviera/rvf/rvf_target.h" | |
36 #include "../../riviera/rvf/rvf_api.h" | |
37 #include "../../riviera/rvt/rvt_gen.h" | |
38 | |
39 #if 0 // FreeCalypso | |
40 /* include the usefull L1 header */ | |
41 | |
42 #include "l1_types.h" | |
43 #include "l1audio_const.h" | |
44 #include "l1audio_cust.h" | |
45 #include "l1audio_defty.h" | |
46 #include "l1audio_msgty.h" | |
47 #include "l1audio_signa.h" | |
48 | |
49 #if TESTMODE | |
50 #include "l1tm_defty.h" | |
51 #endif | |
52 | |
53 #if (L1_GTT == 1) | |
54 #include "l1gtt_defty.h" | |
55 #endif | |
56 | |
57 #include "l1_const.h" | |
58 #include "l1_defty.h" | |
59 #include "l1_msgty.h" | |
60 #include "l1_signa.h" | |
61 | |
62 #include "l1_varex.h" | |
63 | |
64 #endif | |
65 | |
66 /****************************************************************************** | |
67 * Defines | |
68 *****************************************************************************/ | |
69 | |
70 #define TM3_PACKET_SIZE 128 | |
71 #define ETM_PACKET_SIZE 256 | |
72 | |
73 // This is the return TM3 packet structure | |
74 // HACK! - taken from l1tm_msgty.h | |
75 typedef struct | |
76 { | |
77 unsigned char cid; | |
78 unsigned char index; | |
79 unsigned char status; | |
80 unsigned char size; // size of result[] array | |
81 unsigned char result[TM3_PACKET_SIZE]; | |
82 } T_TM3_PKT; | |
83 | |
84 | |
85 // This is the new TM packet structure | |
86 typedef struct | |
87 { | |
88 unsigned short size; // size of data[] | |
89 int index; // index into data[] - for put()/get() functions | |
90 unsigned char mid; | |
91 unsigned char status; | |
92 unsigned char data[ETM_PACKET_SIZE]; // include cksum | |
93 } T_ETM_PKT; | |
94 | |
95 | |
96 #ifndef BASIC_TYPES | |
97 #define BASIC_TYPES | |
98 typedef signed char int8; | |
99 typedef unsigned char uint8; | |
100 typedef signed short int16; | |
101 typedef unsigned short uint16; | |
102 typedef signed int int32; | |
103 typedef unsigned int uint32; | |
104 #endif | |
105 | |
106 /****************************************************************************** | |
107 * Prototypes | |
108 *****************************************************************************/ | |
109 | |
110 void *etm_malloc(int size); | |
111 int etm_free(void *addr); | |
112 | |
113 int etm_at(T_ETM_PKT *pkt, char *buf); | |
114 | |
115 /****************************************************************************** | |
116 * Internal Error codes | |
117 *****************************************************************************/ | |
118 | |
119 enum { | |
120 | |
121 ETM_TASK_REGISTERED = -100, | |
122 ETM_DB_LIMIT = -101 | |
123 | |
124 }; | |
125 | |
126 | |
127 #endif // _ETM_MISC_H_ |