comparison src/g23m-fad/tcpip/include/rv_defined_swe.h @ 174:90eb61ecd093

src/g23m-fad: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2016 05:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
173:bf64d785238a 174:90eb61ecd093
1 /**
2 *
3 * @file rv_defined_swe.h
4 *
5 * Definition of the SWE that will be compiled.
6 *
7 * To include a SWE in the build, the System/env.mak file is used.
8 * Before the build, a rv_swe.h file is generated from env.mak.
9 * This file includes rv_swe.h and makes some adjustement if necessary
10 * (e.g. mandatory SWE to include if some other is included, include
11 * of group of SWE, etc).
12 *
13 * @author Cristian Livadiotti
14 * @version 0.4
15 *
16 */
17
18 /*
19 * Revision History:
20 *
21 * 10/10/2000 Cristian Livadiotti Create.
22 * 10/18/2001 Christophe Favergeon Updated for R2D.
23 * 10/15/2002 Laurent Sollier Updated for automatic definition from env.mak file.
24 * 11/19/2002 Vincent Oberle Added RivieraTool support to automatic definition.
25 *
26 * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved
27 */
28
29 #ifndef _RV_DEFINED_SWE_H_
30 #define _RV_DEFINED_SWE_H_
31
32 #ifndef _SIMULATION_
33 #include "l1sw.cfg"
34 #include "rv.cfg"
35 #include "swconfig.cfg"
36 #include "debug.cfg"
37 /*
38 * rv_swe.h is generated before build from System/env.mak
39 * It is used both for RivieraTool and Target.
40 */
41 #include "rv_swe.h"
42 #endif
43
44
45 /* ------------------------------------------------------------------
46 * Grouped SWEs
47 * Some define in rv_swe.h might not represent one SWE, but a group
48 * of SWEs, this is decoded here.
49 * ------------------------------------------------------------------ */
50
51 /*
52 * Bluetooth SWEs.
53 * If RVM_BLUETOOTH_SWE is defined, the SWE's for the BT PS are defined,
54 * each profile must be defined independently in the env.mak file.
55 */
56 #ifdef RVM_BLUETOOTH_SWE
57 #define RVM_HCI_SWE
58 #define RVM_L2CAP_SWE
59 #define RVM_BTCTRL_SWE
60 #define RVM_RFCOMM_SWE
61 #define RVM_SPP_SWE
62 #define RVM_SDP_SWE
63 #define RVM_OBX_SWE
64 #endif
65
66 /*
67 * DEV SWEs.
68 * (might become useless soon).
69 */
70 #ifdef RVM_DEV_SWE
71 #define RVM_DEV1_SWE
72 #define RVM_DEV2_SWE
73 #define RVM_DEV3_SWE
74 #endif
75
76 /*
77 * J2ME SW entities
78 * If RVM_J2ME_K_SWE is defined, the SWE's for the Java KVM are defined.
79 */
80 #ifdef RVM_JAVA_K_SWE
81 #define RVM_KGC_SWE
82 #define RVM_KIL_SWE
83 #define RVM_KCL_SWE
84 #define RVM_KMM_SWE
85 #define RVM_KNM_SWE
86 #define RVM_UVM_SWE
87 #define RVM_KZP_SWE
88 #define RVM_KPG_SWE
89 #define RVM_JTM_SWE
90 #endif
91
92 /*
93 * AUDIO_FRAMEWORK SW entities
94 * If it is defined, AUDIO SWE is defined and AUDIO BACKGROUND may be defined
95 * depending on available audio features
96 */
97
98 #ifdef RVM_AUDIO_SWE
99 #define RVM_AUDIO_MAIN_SWE
100 #if ((MELODY_E2) || (L1_GTT == 1))
101 #define RVM_AUDIO_BGD_SWE
102 #endif
103 #endif
104
105 /*
106 * TCP/IP
107 * The rule is simple: The Real Implementation has the priority
108 * over others, so if Real Implementation is defined,
109 * then Winsocket (Windows only) and Bridge (Board only) are undefined.
110 * Otherwise, Winsocket and Bridge can be defined together
111 */
112 #if (defined RVM_RNET_RT_SWE)
113 #define RVM_RNET_SWE
114 #ifdef RVM_RNET_WS_SWE
115 #undef RVM_RNET_WS_SWE /* Undef Winsocket implemetation. */
116 #endif
117 #ifdef RVM_RNET_BR_SWE
118 #undef RVM_RNET_BR_SWE /* Undef Bridge implemetation. */
119 #endif
120 #elif ((defined RVM_RNET_WS_SWE) || (defined RVM_RNET_BR_SWE))
121 #define RVM_RNET_SWE
122 #endif
123
124 /* ----------------------------------------
125 * Specifics for a RivieraTool build.
126 * ---------------------------------------- */
127 #ifdef _WINDOWS
128
129 #ifndef RVM_ATP_UART_SWE
130 #define RVM_ATP_UART_SWE
131 #endif
132
133 // Bluetooth PS SW entities: Is this Windows specific???
134 #ifdef BLUETOOTH
135 #define RVM_SYN_SWE
136 #endif
137
138 // Pascal POMPEI - Removed (Bluetooth only).
139 // /* This SWE is mandatory for Riviera Tool (UART driver) */
140 // #ifndef RVM_HCI_SWE
141 // #define RVM_HCI_SWE
142 // #endif
143
144 /* No bridge on Windows */
145 #ifdef RVM_RNET_BR_SWE
146 #undef RVM_RNET_BR_SWE
147 #endif
148
149 // TEMPORARY: THESE SWEs MUST BE FIXED FOR RIVIERATOOL
150 #ifdef RVM_DAR_SWE
151 #undef RVM_DAR_SWE
152 #endif
153 #ifdef RVM_ETM_SWE
154 #undef RVM_ETM_SWE
155 #endif
156
157 /* ----------------------------------------
158 * Specifics for target build.
159 * ---------------------------------------- */
160 #else
161 #if (TI_PROFILER == 1) || (TI_NUC_MONITOR == 1)
162 #define RVM_TI_PRF_SWE
163 #endif
164
165 #ifndef RVM_RVT_SWE
166 #define RVM_RVT_SWE
167 #endif
168
169 #if ((defined RVM_TTY_SWE) && (L1_GTT == 0))
170 #error "TTY entity cannot be enabled if L1_GTT is disabled (= 0)"
171 #endif
172
173 #if ((!defined RVM_TTY_SWE) && (L1_GTT == 1))
174 #error "L1_GTT cannot be enabled (= 1) if TTY entity is disabled"
175 #endif
176
177 /* No Winsocket on target */
178 #ifdef RVM_RNET_WS_SWE
179 #undef RVM_RNET_WS_SWE
180 #endif
181
182 #endif
183
184 #if (defined TEST) && (defined RVM_R2D_SWE) && (defined RVM_RGUI_SWE)
185 #define RVM_RTEST_SWE
186 #endif
187
188 #endif /* _RV_DEFINED_SWE_H_ */
189