comparison gsm-fw/riviera/rv/rv_defined_swe.h @ 143:afceeeb2cba1

Our nuc-fw is destined to become gsm-fw, so I went ahead and did the big hg mv
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 12 Nov 2013 05:35:48 +0000
parents nuc-fw/riviera/rv/rv_defined_swe.h@dd56546ad9e0
children 97b671efff9c
comparison
equal deleted inserted replaced
142:15d5977390c2 143:afceeeb2cba1
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 * Grouped SWEs
50 * Some define in rv_swe.h might not represent one SWE, but a group
51 * of SWEs, this is decoded here.
52 * ------------------------------------------------------------------ */
53
54
55 /*
56 * J2ME SW entities
57 * If RVM_J2ME_K_SWE is defined, the SWE's for the Java KVM are defined.
58 */
59 #ifdef RVM_JAVA_K_SWE
60 #define RVM_KGC_SWE
61 #define RVM_KIL_SWE
62 #define RVM_KCL_SWE
63 #define RVM_KMM_SWE
64 #define RVM_KNM_SWE
65 #define RVM_UVM_SWE
66 #define RVM_KZP_SWE
67 #define RVM_KPG_SWE
68 #define RVM_JTM_SWE
69 #endif
70
71 /*
72 * AUDIO_FRAMEWORK SW entities
73 * If it is defined, AUDIO SWE is defined and AUDIO BACKGROUND may be defined
74 * depending on available audio features
75 */
76
77 #ifdef RVM_AUDIO_SWE
78 #define RVM_AUDIO_MAIN_SWE
79 #if ((MELODY_E2) || (L1_GTT == 1))
80 #define RVM_AUDIO_BGD_SWE
81 #endif
82 #endif
83
84
85 /*
86 * Obigo SWEs.
87 */
88 #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
89 #define RVM_MSFE_SWE
90 #define RVM_MSME_SWE
91 #define RVM_STKE_SWE
92 #define RVM_PHSE_SWE
93 #define RVM_PRSE_SWE
94 #define RVM_IBSE_SWE
95 #define RVM_SELE_SWE
96 #define RVM_SECE_SWE
97 #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
98 #define RVM_BRSE_SWE
99 #define RVM_BRAE_SWE
100 #endif
101 #if ((defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
102 #define RVM_MMSE_SWE
103 #define RVM_SLSE_SWE
104 #define RVM_MEAE_SWE
105 #define RVM_SLAE_SWE
106 #endif
107 #endif
108
109
110 /* ----------------------------------------
111 * WIDCOMM SWEs.
112 * ---------------------------------------- */
113 #ifdef BLUETOOTH_INCLUDED
114 #ifdef _WINDOWS
115 #define RVM_BTH_SWE
116 #else
117 #define RVM_HCI_SWE
118 #endif
119 #define RVM_GKI_SWE
120 #define RVM_BTU_SWE
121 #endif
122
123 /* ----------------------------------------
124 * Specifics for a RivieraTool build.
125 * ---------------------------------------- */
126 #ifdef _WINDOWS
127
128 #ifndef RVM_ATP_UART_SWE
129 #define RVM_ATP_UART_SWE
130 #endif
131
132 /* If a TCP/IP Winsocket implementation is defined */
133 #ifdef RVM_RNET_WS_SWE
134 #define RVM_RNET_SWE /* Define the generic API. */
135 #ifdef RVM_RNET_RT_SWE
136 #undef RVM_RNET_RT_SWE /* Undef Bridge implemetation. */
137 #endif
138 #ifdef RVM_RNET_BR_SWE
139 #undef RVM_RNET_BR_SWE /* Undef Real implemetation. */
140 #endif
141 #endif
142 /* If TCP/IP Bridge implementation is defined */
143 #ifdef RVM_RNET_BR_SWE
144 #define RVM_RNET_SWE /* Define the generic API. */
145 #ifdef RVM_RNET_RT_SWE
146 #undef RVM_RNET_RT_SWE /* Undef Real implemetation. */
147 #endif
148 #endif
149 /* If TCP/IP Real implementation is defined */
150 #ifdef RVM_RNET_RT_SWE
151 #define RVM_RNET_SWE /* Define the generic API. */
152 #ifdef RVM_RNET_BR_SWE
153 #undef RVM_RNET_BR_SWE /* Undef Bridge implemetation. */
154 #endif
155 #endif
156
157 // TEMPORARY: THESE SWEs MUST BE FIXED FOR RIVIERATOOL
158 #ifdef RVM_DAR_SWE
159 #undef RVM_DAR_SWE
160 #endif
161 #ifdef RVM_ETM_SWE
162 #undef RVM_ETM_SWE
163 #endif
164 #ifdef RVM_TTY_SWE
165 #undef RVM_TTY_SWE
166 #endif
167 #ifdef RVM_MFW_SWE
168 #undef RVM_MFW_SWE
169 #endif
170 #ifdef RVM_SMBS_SWE
171 #undef RVM_SMBS_SWE
172 #endif
173
174 /* ----------------------------------------
175 * Specifics for target build.
176 * ---------------------------------------- */
177 #else
178 #if (TI_PROFILER == 1) || (TI_NUC_MONITOR == 1)
179 #define RVM_TI_PRF_SWE
180 #endif
181
182 #ifndef RVM_RVT_SWE
183 #define RVM_RVT_SWE
184 #endif
185
186 /* If TCP/IP Bridge AND Real implementation are defined, error */
187 #if ((defined RVM_TTY_SWE) && (L1_GTT == 0))
188 #error "TTY entity cannot be enabled if L1_GTT is disabled (= 0)"
189 #endif
190
191 #if ((!defined RVM_TTY_SWE) && (L1_GTT == 1))
192 #error "L1_GTT cannot be enabled (= 1) if TTY entity is disabled"
193 #endif
194
195 /* If TCP/IP Bridge AND Real implementation are defined, error */
196 #if (defined RVM_RNET_RT_SWE) && (defined RVM_RNET_BR_SWE)
197 #error "RNET RT and BR cannot be compiled together on target"
198 #endif
199 /* If TCP/IP Bridge OR Real implementation are defined */
200 #if (defined RVM_RNET_RT_SWE) || (defined RVM_RNET_BR_SWE)
201 #define RVM_RNET_SWE /* Define the generic API. */
202 #ifdef RVM_RNET_WS_SWE
203 #undef RVM_RNET_WS_SWE /* Undef Winsocket implemetation. */
204 #endif
205 #endif
206
207 #endif
208
209 #if (TEST==1) && (defined RVM_R2D_SWE) && (defined RVM_RGUI_SWE)
210 #define RVM_RTEST_SWE
211 #endif
212
213 #endif /* _RV_DEFINED_SWE_H_ */