comparison riviera/rv/rv_defined_swe.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 *
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 #include "../../include/config.h"
33 #include "../../L1/include/l1_confg.h"
34
35 /*
36 * rv_swe.h is generated before build from System/env.mak
37 * It is used both for RivieraTool and Target.
38 *
39 * FreeCalypso note: we won't be generating a separate rv_swe.h
40 * file; instead our configuration mechanism will emit the
41 * necessary #define lines into config.h along with all other
42 * definitions.
43 */
44 #if 0
45 #include "rv_swe.h"
46 #endif
47
48 /*
49 * More FreeCalypso hacks: there are some SWEs which we deem
50 * to be needed unconditionally (but which TI still listed in
51 * rv_swe.h, unlike RVT), and we enable them here instead of
52 * littering config.h with them.
53 */
54
55 #define RVM_FFS_SWE
56 #define RVM_RTC_SWE
57 #define RVM_SPI_SWE
58
59 /* ------------------------------------------------------------------
60 * Grouped SWEs
61 * Some define in rv_swe.h might not represent one SWE, but a group
62 * of SWEs, this is decoded here.
63 * ------------------------------------------------------------------ */
64
65
66 /*
67 * J2ME SW entities
68 * If RVM_J2ME_K_SWE is defined, the SWE's for the Java KVM are defined.
69 */
70 #ifdef RVM_JAVA_K_SWE
71 #define RVM_KGC_SWE
72 #define RVM_KIL_SWE
73 #define RVM_KCL_SWE
74 #define RVM_KMM_SWE
75 #define RVM_KNM_SWE
76 #define RVM_UVM_SWE
77 #define RVM_KZP_SWE
78 #define RVM_KPG_SWE
79 #define RVM_JTM_SWE
80 #endif
81
82 /*
83 * AUDIO_FRAMEWORK SW entities
84 * If it is defined, AUDIO SWE is defined and AUDIO BACKGROUND may be defined
85 * depending on available audio features
86 */
87
88 #ifdef RVM_AUDIO_SWE
89 #define RVM_AUDIO_MAIN_SWE
90 #if ((MELODY_E2) || (L1_GTT == 1))
91 #define RVM_AUDIO_BGD_SWE
92 #endif
93 #endif
94
95
96 /*
97 * Obigo SWEs.
98 */
99 #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
100 #define RVM_MSFE_SWE
101 #define RVM_MSME_SWE
102 #define RVM_STKE_SWE
103 #define RVM_PHSE_SWE
104 #define RVM_PRSE_SWE
105 #define RVM_IBSE_SWE
106 #define RVM_SELE_SWE
107 #define RVM_SECE_SWE
108 #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
109 #define RVM_BRSE_SWE
110 #define RVM_BRAE_SWE
111 #endif
112 #if ((defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
113 #define RVM_MMSE_SWE
114 #define RVM_SLSE_SWE
115 #define RVM_MEAE_SWE
116 #define RVM_SLAE_SWE
117 #endif
118 #endif
119
120
121 /* ----------------------------------------
122 * WIDCOMM SWEs.
123 * ---------------------------------------- */
124 #ifdef BLUETOOTH_INCLUDED
125 #ifdef _WINDOWS
126 #define RVM_BTH_SWE
127 #else
128 #define RVM_HCI_SWE
129 #endif
130 #define RVM_GKI_SWE
131 #define RVM_BTU_SWE
132 #endif
133
134 /* ----------------------------------------
135 * Specifics for a RivieraTool build.
136 * ---------------------------------------- */
137 #ifdef _WINDOWS
138
139 #ifndef RVM_ATP_UART_SWE
140 #define RVM_ATP_UART_SWE
141 #endif
142
143 /* If a TCP/IP Winsocket implementation is defined */
144 #ifdef RVM_RNET_WS_SWE
145 #define RVM_RNET_SWE /* Define the generic API. */
146 #ifdef RVM_RNET_RT_SWE
147 #undef RVM_RNET_RT_SWE /* Undef Bridge implemetation. */
148 #endif
149 #ifdef RVM_RNET_BR_SWE
150 #undef RVM_RNET_BR_SWE /* Undef Real implemetation. */
151 #endif
152 #endif
153 /* If TCP/IP Bridge implementation is defined */
154 #ifdef RVM_RNET_BR_SWE
155 #define RVM_RNET_SWE /* Define the generic API. */
156 #ifdef RVM_RNET_RT_SWE
157 #undef RVM_RNET_RT_SWE /* Undef Real implemetation. */
158 #endif
159 #endif
160 /* If TCP/IP Real implementation is defined */
161 #ifdef RVM_RNET_RT_SWE
162 #define RVM_RNET_SWE /* Define the generic API. */
163 #ifdef RVM_RNET_BR_SWE
164 #undef RVM_RNET_BR_SWE /* Undef Bridge implemetation. */
165 #endif
166 #endif
167
168 // TEMPORARY: THESE SWEs MUST BE FIXED FOR RIVIERATOOL
169 #ifdef RVM_DAR_SWE
170 #undef RVM_DAR_SWE
171 #endif
172 #ifdef RVM_ETM_SWE
173 #undef RVM_ETM_SWE
174 #endif
175 #ifdef RVM_TTY_SWE
176 #undef RVM_TTY_SWE
177 #endif
178 #ifdef RVM_MFW_SWE
179 #undef RVM_MFW_SWE
180 #endif
181 #ifdef RVM_SMBS_SWE
182 #undef RVM_SMBS_SWE
183 #endif
184
185 /* ----------------------------------------
186 * Specifics for target build.
187 * ---------------------------------------- */
188 #else
189 #if (TI_PROFILER == 1) || (TI_NUC_MONITOR == 1)
190 #define RVM_TI_PRF_SWE
191 #endif
192
193 #ifndef RVM_RVT_SWE
194 #define RVM_RVT_SWE
195 #endif
196
197 /* If TCP/IP Bridge AND Real implementation are defined, error */
198 #if ((defined RVM_TTY_SWE) && (L1_GTT == 0))
199 #error "TTY entity cannot be enabled if L1_GTT is disabled (= 0)"
200 #endif
201
202 #if ((!defined RVM_TTY_SWE) && (L1_GTT == 1))
203 #error "L1_GTT cannot be enabled (= 1) if TTY entity is disabled"
204 #endif
205
206 /* If TCP/IP Bridge AND Real implementation are defined, error */
207 #if (defined RVM_RNET_RT_SWE) && (defined RVM_RNET_BR_SWE)
208 #error "RNET RT and BR cannot be compiled together on target"
209 #endif
210 /* If TCP/IP Bridge OR Real implementation are defined */
211 #if (defined RVM_RNET_RT_SWE) || (defined RVM_RNET_BR_SWE)
212 #define RVM_RNET_SWE /* Define the generic API. */
213 #ifdef RVM_RNET_WS_SWE
214 #undef RVM_RNET_WS_SWE /* Undef Winsocket implemetation. */
215 #endif
216 #endif
217
218 #endif
219
220 #if (TEST==1) && (defined RVM_R2D_SWE) && (defined RVM_RGUI_SWE)
221 #define RVM_RTEST_SWE
222 #endif
223
224 #endif /* _RV_DEFINED_SWE_H_ */