FreeCalypso > hg > fc-magnetite
comparison src/cs/riviera/rv/rv_defined_swe.h @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
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 _WINDOWS | |
33 #include "config/l1sw.cfg" | |
34 #include "config/rv.cfg" | |
35 #include "config/swconfig.cfg" | |
36 #include "config/debug.cfg" | |
37 #endif | |
38 | |
39 /* | |
40 * rv_swe.h is generated before build from System/env.mak | |
41 * It is used both for RivieraTool and Target. | |
42 */ | |
43 #include "rv_swe.h" | |
44 | |
45 | |
46 /* ------------------------------------------------------------------ | |
47 * Grouped SWEs | |
48 * Some define in rv_swe.h might not represent one SWE, but a group | |
49 * of SWEs, this is decoded here. | |
50 * ------------------------------------------------------------------ */ | |
51 | |
52 | |
53 /* | |
54 * J2ME SW entities | |
55 * If RVM_J2ME_K_SWE is defined, the SWE's for the Java KVM are defined. | |
56 */ | |
57 #ifdef RVM_JAVA_K_SWE | |
58 #define RVM_KGC_SWE | |
59 #define RVM_KIL_SWE | |
60 #define RVM_KCL_SWE | |
61 #define RVM_KMM_SWE | |
62 #define RVM_KNM_SWE | |
63 #define RVM_UVM_SWE | |
64 #define RVM_KZP_SWE | |
65 #define RVM_KPG_SWE | |
66 #define RVM_JTM_SWE | |
67 #endif | |
68 | |
69 /* | |
70 * AUDIO_FRAMEWORK SW entities | |
71 * If it is defined, AUDIO SWE is defined and AUDIO BACKGROUND may be defined | |
72 * depending on available audio features | |
73 */ | |
74 | |
75 #ifdef RVM_AUDIO_SWE | |
76 #define RVM_AUDIO_MAIN_SWE | |
77 #if ((MELODY_E2) || (L1_GTT == 1)) | |
78 #define RVM_AUDIO_BGD_SWE | |
79 #endif | |
80 #endif | |
81 | |
82 | |
83 /* | |
84 * Obigo SWEs. | |
85 */ | |
86 #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE)) | |
87 #define RVM_MSFE_SWE | |
88 #define RVM_MSME_SWE | |
89 #define RVM_STKE_SWE | |
90 #define RVM_PHSE_SWE | |
91 #define RVM_PRSE_SWE | |
92 #define RVM_IBSE_SWE | |
93 #define RVM_SELE_SWE | |
94 #define RVM_SECE_SWE | |
95 #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE)) | |
96 #define RVM_BRSE_SWE | |
97 #define RVM_BRAE_SWE | |
98 #endif | |
99 #if ((defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE)) | |
100 #define RVM_MMSE_SWE | |
101 #define RVM_SLSE_SWE | |
102 #define RVM_MEAE_SWE | |
103 #define RVM_SLAE_SWE | |
104 #endif | |
105 #endif | |
106 | |
107 | |
108 /* ---------------------------------------- | |
109 * WIDCOMM SWEs. | |
110 * ---------------------------------------- */ | |
111 #ifdef BLUETOOTH_INCLUDED | |
112 #ifdef _WINDOWS | |
113 #define RVM_BTH_SWE | |
114 #else | |
115 #define RVM_HCI_SWE | |
116 #endif | |
117 #define RVM_GKI_SWE | |
118 #define RVM_BTU_SWE | |
119 #endif | |
120 | |
121 /* ---------------------------------------- | |
122 * Specifics for a RivieraTool build. | |
123 * ---------------------------------------- */ | |
124 #ifdef _WINDOWS | |
125 | |
126 #ifndef RVM_ATP_UART_SWE | |
127 #define RVM_ATP_UART_SWE | |
128 #endif | |
129 | |
130 /* If a TCP/IP Winsocket implementation is defined */ | |
131 #ifdef RVM_RNET_WS_SWE | |
132 #define RVM_RNET_SWE /* Define the generic API. */ | |
133 #ifdef RVM_RNET_RT_SWE | |
134 #undef RVM_RNET_RT_SWE /* Undef Bridge implemetation. */ | |
135 #endif | |
136 #ifdef RVM_RNET_BR_SWE | |
137 #undef RVM_RNET_BR_SWE /* Undef Real implemetation. */ | |
138 #endif | |
139 #endif | |
140 /* If TCP/IP Bridge implementation is defined */ | |
141 #ifdef RVM_RNET_BR_SWE | |
142 #define RVM_RNET_SWE /* Define the generic API. */ | |
143 #ifdef RVM_RNET_RT_SWE | |
144 #undef RVM_RNET_RT_SWE /* Undef Real implemetation. */ | |
145 #endif | |
146 #endif | |
147 /* If TCP/IP Real implementation is defined */ | |
148 #ifdef RVM_RNET_RT_SWE | |
149 #define RVM_RNET_SWE /* Define the generic API. */ | |
150 #ifdef RVM_RNET_BR_SWE | |
151 #undef RVM_RNET_BR_SWE /* Undef Bridge implemetation. */ | |
152 #endif | |
153 #endif | |
154 | |
155 // TEMPORARY: THESE SWEs MUST BE FIXED FOR RIVIERATOOL | |
156 #ifdef RVM_DAR_SWE | |
157 #undef RVM_DAR_SWE | |
158 #endif | |
159 #ifdef RVM_ETM_SWE | |
160 #undef RVM_ETM_SWE | |
161 #endif | |
162 #ifdef RVM_TTY_SWE | |
163 #undef RVM_TTY_SWE | |
164 #endif | |
165 #ifdef RVM_MFW_SWE | |
166 #undef RVM_MFW_SWE | |
167 #endif | |
168 #ifdef RVM_SMBS_SWE | |
169 #undef RVM_SMBS_SWE | |
170 #endif | |
171 | |
172 /* ---------------------------------------- | |
173 * Specifics for target build. | |
174 * ---------------------------------------- */ | |
175 #else | |
176 #if (TI_PROFILER == 1) || (TI_NUC_MONITOR == 1) | |
177 #define RVM_TI_PRF_SWE | |
178 #endif | |
179 | |
180 #ifndef RVM_RVT_SWE | |
181 #define RVM_RVT_SWE | |
182 #endif | |
183 | |
184 /* If TCP/IP Bridge AND Real implementation are defined, error */ | |
185 #if ((defined RVM_TTY_SWE) && (L1_GTT == 0)) | |
186 #error "TTY entity cannot be enabled if L1_GTT is disabled (= 0)" | |
187 #endif | |
188 | |
189 #if ((!defined RVM_TTY_SWE) && (L1_GTT == 1)) | |
190 #error "L1_GTT cannot be enabled (= 1) if TTY entity is disabled" | |
191 #endif | |
192 | |
193 /* If TCP/IP Bridge AND Real implementation are defined, error */ | |
194 #if (defined RVM_RNET_RT_SWE) && (defined RVM_RNET_BR_SWE) | |
195 #error "RNET RT and BR cannot be compiled together on target" | |
196 #endif | |
197 /* If TCP/IP Bridge OR Real implementation are defined */ | |
198 #if (defined RVM_RNET_RT_SWE) || (defined RVM_RNET_BR_SWE) | |
199 #define RVM_RNET_SWE /* Define the generic API. */ | |
200 #ifdef RVM_RNET_WS_SWE | |
201 #undef RVM_RNET_WS_SWE /* Undef Winsocket implemetation. */ | |
202 #endif | |
203 #endif | |
204 | |
205 #endif | |
206 | |
207 #if (TEST==1) && (defined RVM_R2D_SWE) && (defined RVM_RGUI_SWE) | |
208 #define RVM_RTEST_SWE | |
209 #endif | |
210 | |
211 #endif /* _RV_DEFINED_SWE_H_ */ |