FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/dyn_dwl_cfile/l1_dyn_dwl_init.c @ 24:26666ef41058
l1_dyn_dwl_init.c compiles
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Thu, 22 Oct 2015 16:59:26 +0000 |
parents | 06d94fdaadf6 |
children | 3fca27cfa433 |
comparison
equal
deleted
inserted
replaced
23:8f0ad3db1a0c | 24:26666ef41058 |
---|---|
8 ************* Revision Controle System Header *************/ | 8 ************* Revision Controle System Header *************/ |
9 #include "nucleus.h" | 9 #include "nucleus.h" |
10 #include "l1_confg.h" | 10 #include "l1_confg.h" |
11 #include "sys_types.h" | 11 #include "sys_types.h" |
12 #include "l1_types.h" | 12 #include "l1_types.h" |
13 #include "l1audio_const.h" | |
14 #include "l1audio_cust.h" | |
13 #include "l1audio_defty.h" | 15 #include "l1audio_defty.h" |
14 #include "l1audio_cust.h" | |
15 #include "l1audio_const.h" | |
16 #include "l1_const.h" | 16 #include "l1_const.h" |
17 #include "l1tm_defty.h" | 17 #include "l1tm_defty.h" |
18 | 18 |
19 #if (L1_GTT == 1) | 19 #if (L1_GTT == 1) |
20 #include "l1gtt_const.h" | 20 #include "l1gtt_const.h" |
36 #include "l1aac_defty.h" | 36 #include "l1aac_defty.h" |
37 #endif //L1_AAC | 37 #endif //L1_AAC |
38 | 38 |
39 #include "l1_defty.h" | 39 #include "l1_defty.h" |
40 #include "cust_os.h" | 40 #include "cust_os.h" |
41 #include "nu_main.h" | 41 /* #include "nu_main.h" */ |
42 #include "l1audio_signa.h" | 42 #include "l1audio_signa.h" |
43 #include "l1_varex.h" | 43 #include "l1_varex.h" |
44 #include "l1_macro.h" | 44 #include "l1_macro.h" |
45 #include "l1_trace.h" | 45 #include "l1_trace.h" |
46 | 46 |
47 #if (L1_DYN_DSP_DWNLD == 1) | 47 #if (L1_DYN_DSP_DWNLD == 1) |
48 extern T_DYN_DWNLD_MCU_DSP *dyn_dwl_ndb; | 48 extern T_DYN_DWNLD_MCU_DSP *dyn_dwl_ndb; |
49 #if ((CODE_VERSION == SIMULATION) || (((CHIPSET == 12) || (CHIPSET == 15)))) | 49 |
50 /* reconstructing from disassembly of TCS211 binary object */ | |
51 | |
52 /* patch ID mapping: | |
53 0 = GPRS | |
54 1 = AMR_SCH | |
55 2 = TTY | |
56 3 = AMR_MMS | |
57 4 = E2 | |
58 */ | |
59 | |
50 const BOOL primitives_to_patch_matrix[NUM_OF_DYN_DWNLD_PRIMITIVES][MAX_NUM_OF_PATCH_IDS] = { | 60 const BOOL primitives_to_patch_matrix[NUM_OF_DYN_DWNLD_PRIMITIVES][MAX_NUM_OF_PATCH_IDS] = { |
51 | 61 |
52 // MP3 MMS Melo E2 TTY Speech Acoustic AAC PCM | 62 /* L1C_STOP_DEDICATED_DONE */ {1, 0, 0, 0, 0}, |
53 // MMI_GTT_START_REQ | 63 /* MMI_GTT_START_REQ (?) */ {0, 0, 1, 0, 0}, |
54 {0, 0, 0, 1, 0, 0, 0}, | 64 /* MPHC_IMMED_ASSIGN_REQ */ {0, 1, 0, 0, 0}, |
55 // MMI_TCH_VOCODER_CFG_REQ | 65 /* MMI_MELODY0_E2_START_REQ */ {0, 0, 0, 0, 1}, |
56 {0, 0, 0, 0, 1, 0, 0}, | 66 /* MMI_MELODY1_E2_START_REQ */ {0, 0, 0, 0, 1}, |
57 // MMI_MELODY0_E2_START_REQ | 67 /* L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_CON */ {0, 0, 0, 1, 0} |
58 {0, 0, 1, 0, 0, 0, 0}, | 68 |
59 // MMI_MELODY1_E2_START_REQ | 69 }; |
60 {0, 0, 1, 0, 0, 0, 0}, | 70 |
61 // MMI_MP3_START_REQ | |
62 {1, 0, 0, 0, 0, 0, 0}, | |
63 // MMI_VM_AMR_PLAY_START_REQ | |
64 {0, 1, 0, 0, 0, 0, 0}, | |
65 // MMI_VM_AMR_RECORD_START_REQ | |
66 {0, 1, 0, 0, 0, 0, 0}, | |
67 // MMI_AAC_START_REQ | |
68 {0, 0, 0, 0, 0, 1, 0}, | |
69 // MMI_PCM_DOWNLOAD_START_REQ | |
70 {0, 0, 0, 0, 0, 0, 1}, | |
71 // MMI_PCM_UPLOAD_START_REQ | |
72 {0, 0, 0, 0, 0, 0, 1} | |
73 }; | |
74 | |
75 const BOOL incompatibility_matrix[MAX_NUM_OF_PATCH_IDS][MAX_NUM_OF_PATCH_IDS] ={ | 71 const BOOL incompatibility_matrix[MAX_NUM_OF_PATCH_IDS][MAX_NUM_OF_PATCH_IDS] ={ |
76 | 72 {0, 1, 1, 0, 0}, |
77 // MP3 MMS Melo E2 TTY Speech Acoustic AAC PCM | 73 {1, 0, 0, 0, 0}, |
78 // MP3 | 74 {0, 0, 0, 1, 1}, |
79 {0, 1, 1, 1, 1, 1, 1}, | 75 {0, 0, 1, 0, 1}, |
80 // MMS | 76 {0, 0, 1, 1, 0}, |
81 {1, 0, 1, 1, 1, 1, 1}, | 77 }; |
82 // Melo E2 | |
83 {1, 1, 0, 1, 1, 1, 1}, | |
84 // TTY | |
85 {1, 1, 1, 0, 1, 1, 1}, | |
86 // Speech Acoustic | |
87 {1, 1, 1, 1, 0, 1, 0}, | |
88 // AAC | |
89 {1, 1, 1, 1, 1, 0, 1}, | |
90 // PCM | |
91 {1, 1, 1, 1, 0, 1, 0} | |
92 }; | |
93 | |
94 | 78 |
95 const BOOL semaphore_matrix[MAX_NUM_OF_PATCH_IDS][MAX_NUM_OF_SEMAPHORES] = { | 79 const BOOL semaphore_matrix[MAX_NUM_OF_PATCH_IDS][MAX_NUM_OF_SEMAPHORES] = { |
96 | 80 {0, 0, 0, 0, 0, 1}, |
97 // MP3 SM VM AMR SM E2 SM ANR SM Speech Reco SM TTY SM WCM SM AAC SM PCM SM | 81 {1, 0, 0, 0, 0, 1}, |
98 // MP3 | 82 {0, 1, 0, 0, 0, 1}, |
99 {1, 0, 0, 0, 1, 0, 1, 1, 0}, | 83 {0, 0, 0, 1, 1, 1}, |
100 // MMS | 84 {0, 0, 1, 0, 0, 1}, |
101 {1, 1, 0, 0, 1, 0, 0, 1, 0}, | 85 }; |
102 // Melo E2 | |
103 {1, 0, 1, 0, 1, 0, 0, 1, 0}, | |
104 // TTY | |
105 {1, 0, 0, 0, 1, 1, 0, 1, 0}, | |
106 // Speech Acoustic | |
107 {1, 0, 0, 1, 1, 0, 0, 1, 0}, | |
108 // AAC | |
109 {1, 0, 0, 0, 1, 0, 1, 1, 0}, | |
110 // PCM | |
111 {1, 0, 0, 0, 1, 0, 0, 1, 1} | |
112 }; | |
113 #elif (CHIPSET == 10 && BOARD == 35) | |
114 const BOOL primitives_to_patch_matrix[NUM_OF_DYN_DWNLD_PRIMITIVES][MAX_NUM_OF_PATCH_IDS] = { | |
115 | |
116 /* MMS TTY Speech Acoustic */ | |
117 /* MMI_GTT_START_REQ */ { 0, 1, 0}, | |
118 /* MMI_TCH_VOCODER_CFG_REQ */ { 0, 0, 1}, | |
119 /* MMI_VM_AMR_PLAY_START_REQ */ { 1, 0, 0}, | |
120 /* MMI_VM_AMR_RECORD_START_REQ */ { 1, 0, 0} | |
121 }; | |
122 | |
123 const BOOL incompatibility_matrix[MAX_NUM_OF_PATCH_IDS][MAX_NUM_OF_PATCH_IDS] ={ | |
124 | |
125 /* MMS TTY Speech Acoustic */ | |
126 /* MMS */ { 0, 1, 1}, | |
127 /* TTY */ { 1, 0, 0}, | |
128 /* Speech Acoustic */ { 1, 0, 0} | |
129 }; | |
130 | |
131 | |
132 const BOOL semaphore_matrix[MAX_NUM_OF_PATCH_IDS][MAX_NUM_OF_SEMAPHORES] = { | |
133 | |
134 // VM AMR SM ANR SM Speech Reco SM TTY SM | |
135 // MMS | |
136 { 1, 0, 1, 0 }, | |
137 // TTY | |
138 { 0, 0, 1, 1, }, | |
139 // Speech Acoustic | |
140 { 0, 1, 1, 0 } | |
141 }; | |
142 #endif // CODE_VERSION == SIMULATION || ((CHIPSET == 12) || (CHIPSET == 15)) | |
143 | 86 |
144 UWORD32 dyn_dwnld_address_vect[MAX_NUM_OF_PATCH_IDS]; | 87 UWORD32 dyn_dwnld_address_vect[MAX_NUM_OF_PATCH_IDS]; |
145 UWORD16 dyn_dwnld_crc_vect[MAX_NUM_OF_PATCH_IDS]; | 88 UWORD16 dyn_dwnld_crc_vect[MAX_NUM_OF_PATCH_IDS]; |
146 UWORD16 size_vect[MAX_NUM_OF_PATCH_IDS]; | 89 UWORD16 size_vect[MAX_NUM_OF_PATCH_IDS]; |
147 | 90 |
148 UWORD8 const *dyn_dwnld_copy_MCU_vect[MAX_NUM_OF_PATCH_IDS]; | 91 UWORD8 const *dyn_dwnld_copy_MCU_vect[MAX_NUM_OF_PATCH_IDS]; |
149 | 92 |
150 #if (CODE_VERSION != SIMULATION && ((CHIPSET == 12) || (CHIPSET == 15))) | 93 extern const UWORD8 amr_mms_patch_array[]; |
151 #if (L1_MP3 == 1) | 94 extern const UWORD8 amr_sch_patch_array[]; |
152 extern const UWORD8 mp3_patch_array[]; | 95 extern const UWORD8 e2_patch_array[]; |
153 #endif | 96 extern const UWORD8 gprs_patch_array[]; |
154 extern const UWORD8 amr_mms_patch_array[]; | 97 extern const UWORD8 speech_acoustic_patch_array[]; |
155 #if (CHIPSET == 15) | 98 extern const UWORD8 tty_patch_array[]; |
156 // TODO: Just to avoid Compilation errors. | 99 |
157 // Ideally E2 should be completely removed for Locosto | |
158 const UWORD8 e2_patch_array[] = { | |
159 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
160 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
161 | |
162 /* size */ 0x0f, 0x00, 0x00, 0x00, | |
163 /* addr */ 0x05, 0x16, 0x00, 0x00, | |
164 0xF8,0x10,0xF6,0x17,0x10,0xF0,0x03,0x00,0x45,0xF8,0x0F,0x16,0x74,0xF0,0x12,0x16, | |
165 0x73,0xF0,0x11,0x16,0x74,0xF0,0x13,0x16,0x00,0xFC,0x00,0xFC,0x00,0xFC,0xAD,0xDE, | |
166 | |
167 /* Final record */ | |
168 /* size */ 0x00, 0x00, 0x00, 0x00, | |
169 /* Installation addr */ 0x05, 0x16, 0x00, 0x00, | |
170 /* Checksum */ 0x34, 0x03, | |
171 }; | |
172 #else | |
173 extern const UWORD8 e2_patch_array[]; | |
174 #endif | |
175 //extern const UWORD8 tty_patch_array[]; | |
176 extern const UWORD8 speech_acoustic_patch_array[]; | |
177 #if (L1_AAC == 1) | |
178 extern const UWORD8 aac_patch_array[]; | |
179 #endif | |
180 #if (L1_PCM_EXTRACTION == 1) | |
181 extern const UWORD8 pcm_patch_array[]; | |
182 #endif | |
183 #elif (CODE_VERSION != SIMULATION && CHIPSET == 10 && BOARD == 35) | |
184 extern const UWORD8 amr_mms_patch_array[]; | |
185 // extern const UWORD8 tty_patch_array[]; | |
186 extern const UWORD8 speech_acoustic_patch_array[]; | |
187 #elif (CODE_VERSION == SIMULATION) | |
188 const UWORD8 mp3_patch_array[] = { | |
189 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
190 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
191 /* size */ 0x01, 0x00, 0x00, 0x00, | |
192 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
193 0x0E,0x60, | |
194 /* Final record */ 0xAD, 0xDE, | |
195 /* size */ 0x00, 0x00, 0x00, 0x00, | |
196 /* addr */ 0xAA, 0xAA, 0x00, 0x00, | |
197 /* CRC */ 0xAA, 0xAA, 0x00, 0x00, | |
198 }; | |
199 const UWORD8 amr_mms_patch_array[] = { | |
200 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
201 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
202 /* size */ 0x01, 0x00, 0x00, 0x00, | |
203 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
204 0x0E,0x60, | |
205 /* Final record */ 0xAD, 0xDE, | |
206 /* size */ 0x00, 0x00, 0x00, 0x00, | |
207 /* addr */ 0xBB, 0xBB, 0x00, 0x00, | |
208 /* CRC */ 0xBB, 0xBB, 0x00, 0x00, | |
209 }; | |
210 const UWORD8 pcm_patch_array[] = { | |
211 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
212 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
213 /* size */ 0x01, 0x00, 0x00, 0x00, | |
214 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
215 0x0E,0x60, | |
216 /* Final record */ 0xAD, 0xDE, | |
217 /* size */ 0x00, 0x00, 0x00, 0x00, | |
218 /* addr */ 0xBB, 0xBB, 0x00, 0x00, | |
219 /* CRC */ 0xBB, 0xBB, 0x00, 0x00, | |
220 }; | |
221 const UWORD8 aac_patch_array[] = { | |
222 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
223 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
224 /* size */ 0x01, 0x00, 0x00, 0x00, | |
225 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
226 0x0E,0x60, | |
227 /* Final record */ 0xAD, 0xDE, | |
228 /* size */ 0x00, 0x00, 0x00, 0x00, | |
229 /* addr */ 0xCC, 0xCC, 0x00, 0x00, | |
230 /* CRC */ 0xCC, 0xCC, 0x00, 0x00, | |
231 }; | |
232 const UWORD8 tty_patch_array[] = { | |
233 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
234 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
235 /* size */ 0x01, 0x00, 0x00, 0x00, | |
236 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
237 0x0E,0x60, | |
238 /* Final record */ 0xAD, 0xDE, | |
239 /* size */ 0x00, 0x00, 0x00, 0x00, | |
240 /* addr */ 0xDD, 0xDD, 0x00, 0x00, | |
241 /* CRC */ 0xDD, 0xDD, 0x00, 0x00, | |
242 }; | |
243 const UWORD8 e2_patch_array[] = { | |
244 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
245 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
246 | |
247 /* size */ 0xab, 0x03, 0x00, 0x00, | |
248 /* addr */ 0x10, 0x64, 0x00, 0x00, | |
249 | |
250 0xF8,0x76,0x66,0x58,0x00,0x00,0x00,0xFC,0xF8,0x60,0x66,0x58,0x00,0x00,0x20,0xF8, | |
251 0x23,0x64,0xF8,0x10,0x67,0x58,0xE3,0xF4,0xF8,0x76,0x66,0x58,0x01,0x00,0xF8,0x10, | |
252 0x6A,0x58,0xE3,0xF4,0x00,0xFC,0xF8,0x60,0x66,0x58,0x01,0x00,0x20,0xF8,0x37,0x64, | |
253 0xF8,0x10,0x69,0x58,0xE3,0xF4,0xF8,0x76,0x66,0x58,0x02,0x00,0x45,0xF8,0x37,0x64, | |
254 0xF8,0x76,0x66,0x58,0x01,0x00,0xF8,0x10,0x6A,0x58,0xE3,0xF4,0x00,0xFC,0xF8,0x60, | |
255 0x66,0x58,0x02,0x00,0x20,0xF8,0x48,0x64,0xF8,0x76,0x66,0x58,0x03,0x00,0xF8,0x10, | |
256 0x68,0x58,0xE3,0xF4,0xF8,0x60,0x66,0x58,0x01,0x00,0x30,0xF8,0x28,0x64,0x00,0xFC, | |
257 0xF8,0x60,0x66,0x58,0x05,0x00,0x30,0xF8,0x1C,0x64,0xF8,0x60,0x66,0x58,0x04,0x00, | |
258 0x30,0xF8,0x1C,0x64,0x00,0xFC,0xF8,0x76,0x66,0x58,0x01,0x00,0x00,0xFC,0xF8,0x76, | |
259 0x66,0x58,0x05,0x00,0x00,0xFC,0xF8,0x76,0x66,0x58,0x04,0x00,0x00,0xFC,0xBB,0xF7, | |
260 0xF8,0x10,0x4E,0x43,0xF8,0x08,0x4F,0x43,0xBB,0xF6,0x00,0xFC,0xBB,0xF7,0x20,0xF0, | |
261 0x14,0x64,0x74,0xF0,0xC3,0xAA,0xBB,0xF6,0x00,0xFC,0xF8,0x61,0x09,0x09,0x00,0x20, | |
262 0x20,0xF8,0x79,0x64,0x74,0xF0,0xF7,0xC4,0xF8,0x76,0x66,0x58,0x01,0x00,0x73,0xF0, | |
263 0x97,0x65,0xF8,0x60,0x66,0x58,0x05,0x00,0x20,0xF8,0xF7,0xC4,0xF8,0x76,0x66,0x58, | |
264 0x01,0x00,0xF8,0x10,0x6A,0x58,0xE2,0xF4,0x20,0xF0,0xEA,0x64,0x74,0xF0,0x8E,0x64, | |
265 0x00,0xFC,0x20,0xF0,0xCB,0x64,0x74,0xF0,0x8E,0x64,0x00,0xFC,0x06,0x4A,0x17,0x4A, | |
266 0x16,0x4A,0x11,0x4A,0x07,0x4A,0x1D,0x4A,0x06,0x77,0x00,0x00,0x07,0x77,0x00,0x69, | |
267 0xF8,0x68,0x1D,0x00,0xFC,0xFF,0xE3,0xF4,0x1D,0x8A,0x07,0x8A,0x11,0x8A,0x16,0x8A, | |
268 0x17,0x8A,0x06,0x8A,0x00,0xFC,0xF8,0x76,0x69,0x58,0x5F,0x64,0xF8,0x76,0x6A,0x58, | |
269 0x66,0x64,0xF8,0x76,0xCB,0x43,0x6D,0x64,0xE4,0xF4,0x10,0x77,0xA0,0x28,0x11,0x77, | |
270 0x00,0x28,0x12,0x72,0xBE,0x3F,0x00,0xE8,0x1A,0x77,0x9F,0x00,0x72,0xF2,0xBC,0x64, | |
271 0x19,0x77,0x5E,0x01,0x90,0x80,0x91,0x80,0xD2,0x80,0xE4,0xF4,0xF8,0x76,0x69,0x58, | |
272 0x84,0x64,0xF8,0x76,0x6A,0x58,0x89,0x64,0xF8,0x76,0x33,0x4C,0xFA,0x64,0xF8,0x76, | |
273 0x32,0x4C,0x6B,0x65,0x00,0xFC,0x11,0x4A,0xFC,0xEE,0x95,0xF4,0xBB,0xF7,0x03,0x76, | |
274 0x16,0x00,0x02,0x76,0x00,0x00,0x18,0x48,0x00,0xF0,0x02,0x00,0xF8,0x11,0x43,0x4C, | |
275 0x00,0x80,0x20,0xF0,0xD1,0x4B,0xE3,0xF5,0x11,0x88,0x95,0xF4,0x95,0xF4,0xE1,0x6C, | |
276 0xFF,0xFF,0xE5,0x64,0xF8,0x69,0xD5,0x08,0x00,0x04,0xBB,0xF6,0x95,0xF4,0x04,0xEE, | |
277 0x11,0x8A,0x00,0xFC,0xBB,0xF7,0xF8,0x10,0xD2,0x4B,0xF8,0x08,0xD1,0x4B,0x44,0xF8, | |
278 0xF6,0x64,0xBB,0xF6,0x95,0xF4,0x00,0xE8,0x73,0xF0,0xF9,0x64,0xBB,0xF6,0x95,0xF4, | |
279 0x01,0xE8,0x00,0xFC,0xFF,0xEE,0xF8,0x11,0x5E,0x3F,0x20,0xF0,0x14,0x64,0xE3,0xF5, | |
280 0x01,0xEE,0x00,0xFC,0x11,0x4A,0xFE,0xEE,0xF8,0x61,0x09,0x09,0x01,0x00,0x20,0xF8, | |
281 0x48,0x65,0xF8,0x61,0x08,0x09,0x00,0x20,0x20,0xF8,0x41,0x65,0xF8,0x60,0x41,0x09, | |
282 0x03,0x00,0x20,0xF8,0x35,0x65,0xF8,0x61,0x09,0x09,0x00,0x20,0x30,0xF8,0x2D,0x65, | |
283 0xF8,0x69,0x09,0x09,0x00,0x20,0xF8,0x76,0x6B,0x58,0x00,0x00,0xF8,0x76,0x00,0x4C, | |
284 0x28,0x67,0xF8,0x76,0x6C,0x58,0x0D,0x66,0xF8,0x11,0x5E,0x3F,0x20,0xF0,0x9F,0x65, | |
285 0xE3,0xF5,0x74,0xF0,0x10,0x64,0x73,0xF0,0x3E,0x65,0xF8,0x68,0x09,0x09,0xFE,0xDF, | |
286 0xF8,0x76,0x6B,0x58,0x01,0x00,0x73,0xF0,0x3E,0x65,0xF8,0x76,0xC3,0x3F,0x00,0x28, | |
287 0xF8,0x76,0xC4,0x3F,0xA0,0x28,0xF8,0x76,0x6C,0x58,0xC8,0x5D,0xF8,0x68,0x08,0x09, | |
288 0xFF,0xDF,0xF8,0x10,0x41,0x09,0x44,0xF8,0x48,0x65,0xF8,0x76,0x6C,0x58,0x98,0x71, | |
289 0x11,0x72,0xB9,0x4B,0x95,0xF4,0x81,0x10,0xF8,0x61,0x08,0x00,0x00,0x40,0x30,0xF8, | |
290 0x63,0x65,0xF8,0x61,0x08,0x00,0xFF,0x00,0x20,0xF8,0x63,0x65,0x11,0x72,0xB9,0x4B, | |
291 0x95,0xF4,0xE1,0x60,0x03,0x00,0x03,0x00,0x20,0xF8,0x63,0x65,0xF8,0x61,0xB0,0x3F, | |
292 0x02,0x00,0x30,0xF8,0x68,0x65,0x00,0x70,0xE5,0x4B,0x15,0xE8,0x74,0xF0,0x23,0xDC, | |
293 0x02,0xEE,0x11,0x8A,0x00,0xFC,0xFF,0xEE,0xF8,0x11,0x63,0x3F,0x15,0xE8,0xE3,0xF5, | |
294 0xF8,0x61,0x09,0x09,0x00,0x20,0x30,0xF8,0x88,0x65,0xF8,0x60,0x66,0x58,0x05,0x00, | |
295 0x30,0xF8,0x81,0x65,0xF8,0x11,0x5E,0x3F,0x20,0xF0,0x35,0xE1,0xE3,0xF5,0x73,0xF0, | |
296 0x95,0x65,0xF8,0x76,0x66,0x58,0x01,0x00,0x74,0xF0,0xCB,0x64,0x73,0xF0,0x95,0x65, | |
297 0xF8,0x11,0x5E,0x3F,0x20,0xF0,0x35,0xE1,0xE3,0xF5,0xF8,0x76,0x66,0x58,0x01,0x00, | |
298 0xF8,0x11,0x5E,0x3F,0x20,0xF0,0x97,0x65,0xE3,0xF5,0x01,0xEE,0x00,0xFC,0xF8,0x76, | |
299 0x67,0x58,0x9F,0x65,0xF8,0x76,0x68,0x58,0xB8,0x65,0x73,0xF0,0x14,0x64,0xF8,0x68, | |
300 0xBF,0x3F,0xFF,0xF7,0xF8,0x69,0xBF,0x3F,0x00,0x10,0xF8,0x76,0xD2,0x56,0x01,0x00, | |
301 0xF8,0x76,0xCD,0x4F,0x01,0x00,0xF8,0x76,0x05,0x09,0x01,0x04,0xF8,0x76,0xD5,0x56, | |
302 0xFE,0xFF,0x81,0xF9,0x16,0xA3,0x80,0xF9,0x15,0x66,0x80,0xF9,0xAD,0x64,0x00,0xFC, | |
303 0xF8,0x60,0xD1,0x56,0x02,0x00,0x30,0xF8,0xFE,0x65,0xF8,0x60,0x00,0x15,0x00,0x00, | |
304 0x30,0xF8,0xDB,0x65,0xF8,0x10,0x00,0x15,0x93,0xF4,0xF8,0x18,0x01,0x15,0xF8,0x80, | |
305 0x01,0x15,0x01,0xE8,0x12,0x77,0xE5,0x55,0x10,0x77,0x0E,0x00,0x1A,0x77,0x0F,0x00, | |
306 0x72,0xF0,0xDA,0x65,0x40,0xF5,0xF8,0x19,0x00,0x15,0x4D,0xF8,0xD9,0x65,0x82,0x76, | |
307 0x00,0x00,0x61,0xF4,0xB2,0x6D,0xF8,0x76,0x00,0x15,0x00,0x00,0xF8,0x10,0x3C,0x15, | |
308 0x45,0xF8,0xFE,0x65,0xF8,0x6B,0xD5,0x56,0x01,0x00,0x81,0xF9,0x19,0xA3,0x74,0xF0, | |
309 0x53,0x64,0xF8,0x60,0xD5,0x56,0x0A,0x00,0x30,0xF8,0xFE,0x65,0xF8,0x60,0xD5,0x56, | |
310 0x16,0x00,0x30,0xF8,0xFE,0x65,0xF8,0x60,0xD5,0x56,0x20,0x00,0x20,0xF8,0x00,0x66, | |
311 0xF8,0x6B,0x3C,0x15,0xFF,0xFF,0xF8,0x76,0xD5,0x56,0xFE,0xFF,0x74,0xF0,0x57,0x64, | |
312 0xF8,0x10,0x6B,0x58,0x44,0xF9,0x05,0x66,0x00,0xFC,0xF8,0x68,0xBF,0x3F,0xFF,0xEF, | |
313 0x81,0xF9,0x1C,0xA3,0x74,0xF0,0x5B,0x64,0x00,0xFC,0xF8,0x60,0xD1,0x56,0x00,0x00, | |
314 0x30,0xF8,0x14,0x66,0x81,0xF9,0x1F,0xA3,0x00,0xFC,0x06,0x4A,0x07,0x4A,0x07,0x77, | |
315 0x00,0x23,0xAD,0xEA,0x95,0xF4,0x95,0xF4,0x7A,0x76,0x46,0x66,0x7B,0x76,0xC3,0x66, | |
316 0x7C,0x76,0xD8,0x66,0x79,0x76,0x3C,0x66,0xF8,0x76,0x00,0x15,0x00,0x00,0x13,0x77, | |
317 0xD8,0x55,0x93,0x76,0x14,0x00,0x93,0x76,0x11,0x00,0x93,0x76,0x0F,0x00,0x93,0x76, | |
318 0x0C,0x00,0x93,0x76,0x0A,0x00,0x93,0x76,0x07,0x00,0x93,0x76,0x05,0x00,0x83,0x76, | |
319 0x02,0x00,0x07,0x8A,0x06,0x8A,0xE4,0xF4,0xF8,0x4B,0xBE,0x3F,0xF8,0x76,0xBE,0x3F, | |
320 0x00,0x50,0x74,0xF0,0x94,0x67,0xF8,0x8B,0xBE,0x3F,0x00,0xFC,0x00,0xE8,0x08,0x8A, | |
321 0x10,0xF0,0x0D,0x00,0x44,0xF8,0x4E,0x66,0x56,0x44,0x40,0x4E,0x57,0x30,0x40,0x20, | |
322 0x76,0xF4,0x0E,0x88,0x59,0x20,0x00,0xF0,0x00,0x20,0x47,0x6F,0x62,0x0C,0x40,0x30, | |
323 0x5B,0x20,0x68,0x6F,0x6A,0x0C,0x5A,0x30,0x58,0x20,0x61,0xF4,0x0E,0x88,0x56,0x20, | |
324 0x79,0xF4,0x5F,0x80,0x45,0x62,0xA0,0x00,0x5F,0x08,0x42,0xF8,0x6B,0x66,0x47,0x10, | |
325 0x48,0x80,0x73,0xF0,0xA9,0x66,0x20,0xF1,0x00,0x04,0x86,0xF4,0x40,0x11,0x69,0xF7, | |
326 0x87,0xF4,0x09,0xF0,0x01,0x00,0x76,0xF5,0x68,0x6F,0x41,0x0C,0x87,0xF5,0x69,0x81, | |
327 0x1F,0xF6,0x0F,0xEC,0x69,0x1E,0x30,0xF0,0xFF,0xFF,0x95,0xF4,0x95,0xF4,0x45,0xFF, | |
328 0x00,0xF0,0x01,0x00,0x48,0x80,0x48,0x6F,0x5C,0x0D,0x47,0x09,0x4F,0xF8,0x8A,0x66, | |
329 0x47,0x10,0x48,0x80,0x5A,0x10,0x00,0xF0,0x01,0x00,0x60,0x80,0x60,0x30,0x40,0x20, | |
330 0x60,0x6F,0x9E,0x0C,0x60,0x30,0x66,0xF0,0x9A,0x01,0x77,0xF4,0x0F,0xEC,0x47,0x1E, | |
331 0x40,0xF5,0x5B,0x30,0x40,0x20,0x60,0x6F,0x9E,0x0C,0x60,0x30,0x66,0xF0,0x9A,0x01, | |
332 0x77,0xF4,0x0F,0xEC,0x48,0x1E,0x00,0xF5,0x30,0xF3,0xFF,0xFF,0x45,0x10,0x87,0xF5, | |
333 0x45,0x81,0x00,0xE8,0x4A,0x80,0x4B,0x80,0x49,0x80,0x42,0x4E,0x6E,0x76,0x01,0x00, | |
334 0x45,0x10,0x47,0xF8,0xC1,0x66,0x6E,0x76,0x00,0x00,0x5E,0x10,0xF8,0x1A,0x01,0x15, | |
335 0xF8,0x80,0x01,0x15,0x6D,0x71,0x16,0x00,0x62,0xE7,0x13,0x77,0xC0,0x56,0x0D,0xEC, | |
336 0x98,0xE5,0x17,0x8A,0x00,0xFC,0x56,0x6F,0x4A,0x0C,0x6C,0x6F,0x29,0x0C,0x61,0xF0, | |
337 0x01,0x00,0x46,0xF8,0xD2,0x66,0x68,0x76,0x00,0x00,0x56,0x6F,0x4A,0x0C,0x69,0x82, | |
338 0x73,0xF0,0x0E,0xA5,0x68,0x82,0x56,0x6F,0x0A,0x0C,0x69,0x82,0x73,0xF0,0x0E,0xA5, | |
339 0x42,0x56,0x67,0x45,0x80,0xF2,0x6C,0x6F,0x2F,0x0C,0x7A,0xF4,0x60,0xF0,0x01,0x00, | |
340 0xF8,0x82,0x10,0x00,0x95,0xF4,0x73,0xF0,0x6E,0xA5,0xF8,0x61,0x09,0x09,0x01,0x00, | |
341 0x20,0xF8,0x27,0x67,0xF8,0x61,0x08,0x09,0x00,0x20,0x20,0xF8,0x1F,0x67,0xF8,0x60, | |
342 0x41,0x09,0x03,0x00,0x20,0xF8,0x13,0x67,0xF8,0x61,0x09,0x09,0x00,0x20,0x20,0xF8, | |
343 0x04,0x67,0xF8,0x68,0x09,0x09,0xFF,0xDF,0xF8,0x68,0x09,0x09,0xFE,0xFF,0xF8,0x76, | |
344 0x6B,0x58,0x01,0x00,0x73,0xF0,0x1C,0x67,0xF8,0x69,0x09,0x09,0x00,0x20,0xF8,0x76, | |
345 0x6B,0x58,0x00,0x00,0xF8,0x76,0x6C,0x58,0x0D,0x66,0x74,0xF0,0x9F,0x65,0x74,0xF0, | |
346 0x10,0x64,0x73,0xF0,0x1C,0x67,0xF8,0x76,0xC4,0x3F,0xA0,0x28,0xF8,0x76,0xC3,0x3F, | |
347 0x00,0x28,0xF8,0x76,0x6C,0x58,0xC8,0x5D,0xF8,0x68,0x08,0x09,0xFF,0xDF,0xF8,0x60, | |
348 0x41,0x09,0x00,0x00,0x20,0xF8,0x27,0x67,0xF8,0x76,0x6C,0x58,0x98,0x71,0x00,0xFC, | |
349 0xF8,0x10,0x6C,0x58,0xE2,0xF4,0xF8,0x61,0x08,0x09,0x14,0x00,0x20,0xF8,0x32,0x67, | |
350 0x74,0xF0,0x10,0x64,0x00,0xFC,0xF8,0x76,0x6C,0x58,0x4F,0x67,0xF8,0x76,0x6D,0x58, | |
351 0x2B,0x67,0xF8,0x76,0x56,0x4C,0x02,0x65,0xF8,0x11,0x6B,0x58,0x10,0xF3,0x01,0x00, | |
352 0x4D,0xF8,0x46,0x67,0x74,0xF0,0x4F,0x67,0x73,0xF0,0x48,0x67,0x74,0xF0,0x49,0x67, | |
353 0x00,0xFC,0x74,0xF0,0x10,0x64,0xF8,0x76,0x00,0x4C,0x28,0x67,0x00,0xFC,0xF8,0x76, | |
354 0x6A,0x58,0xE5,0x66,0xF8,0x76,0xB3,0x43,0x28,0x67,0x80,0xF9,0xA3,0x64,0x20,0xF0, | |
355 0xBE,0x64,0x74,0xF0,0xBC,0x71,0x00,0xFC,0xF8,0x76,0x56,0x4C,0x8E,0x61,0xF8,0x11, | |
356 0x6B,0x58,0x10,0xF3,0x01,0x00,0x4D,0xF8,0x69,0x67,0x74,0xF0,0x6C,0x67,0x73,0xF0, | |
357 0x6B,0x67,0x74,0xF0,0x75,0x67,0x00,0xFC,0xF8,0x76,0x6A,0x58,0xEB,0x5A,0xF8,0x76, | |
358 0x6D,0x58,0xEB,0x5A,0xF8,0x76,0xB3,0x43,0xF7,0x5A,0xF8,0x76,0x6A,0x58,0xEB,0x5A, | |
359 0xF8,0x76,0x6D,0x58,0xEB,0x5A,0xF8,0x76,0x00,0x4C,0x98,0x71,0x00,0xFC,0x11,0x4A, | |
360 0x11,0x88,0x95,0xF4,0x95,0xF4,0x81,0x6C,0x8C,0x67,0xF8,0x11,0x5E,0x3F,0x20,0xF0, | |
361 0x33,0x67,0xE3,0xF5,0x73,0xF0,0x91,0x67,0xF8,0x11,0x5E,0x3F,0x20,0xF0,0x5C,0x67, | |
362 0xE3,0xF5,0x01,0xE8,0x11,0x8A,0x00,0xFC,0x06,0x4A,0x07,0x4A,0x9F,0xEA,0x07,0x77, | |
363 0x00,0x23,0xF8,0x10,0xCD,0x4F,0x45,0xF8,0xA2,0xFD,0x13,0x77,0xD8,0x4F,0x71,0xF0, | |
364 0x20,0x00,0x93,0x80,0x4D,0x80,0x20,0xF0,0x00,0x40,0x4E,0x80,0x4F,0x80,0xF8,0x10, | |
365 0x05,0x09,0x50,0x6F,0x68,0x0C,0x51,0x76,0x8F,0x02,0x52,0x76,0x66,0x66,0x55,0x76, | |
366 0x00,0x04,0x56,0x76,0x00,0x08,0x50,0x62,0x01,0x00,0x53,0x80,0x50,0x62,0x02,0x00, | |
367 0x54,0x80,0x73,0xF0,0xA2,0xFD, | |
368 | |
369 /* Final record */ 0xAD, 0xDE, | |
370 /* size */ 0x00, 0x00, 0x00, 0x00, | |
371 /* Installation addr */ 0x83, 0x5a, 0x00, 0x00, | |
372 /* Checksum */ 0x83, 0x5a, | |
373 }; | |
374 const UWORD8 speech_acoustic_patch_array[] = { | |
375 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
376 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
377 /* size */ 0x0A, 0x00, 0x00, 0x00, | |
378 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
379 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, | |
380 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, | |
381 /* CNTRL WORD*/ 0xAD, 0xDE, | |
382 /* size */ 0x0B, 0x00, 0x00, 0x00, | |
383 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
384 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, | |
385 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, | |
386 /* CNTRL WORD*/ 0xAD, 0xDE, | |
387 /* size */ 0x28, 0x00, 0x00, 0x00, | |
388 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
389 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
390 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
391 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
392 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
393 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
394 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
395 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
396 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, | |
397 /* CNTRL WORD*/ 0xAD, 0xDE, | |
398 /* size */ 0x28, 0x00, 0x00, 0x00, | |
399 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
400 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
401 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
402 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
403 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
404 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
405 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
406 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
407 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, | |
408 /* CNTRL WORD*/ 0xAD, 0xDE, | |
409 /* size */ 0x01, 0x00, 0x00, 0x00, | |
410 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
411 0x55, 0x55, | |
412 /* CNTRL WORD*/ 0xAD, 0xDE, | |
413 /* Final record */ | |
414 /* size */ 0x00, 0x00, 0x00, 0x00, | |
415 /* addr */ 0xEE, 0xEE, 0x00, 0x00, | |
416 /* CRC */ 0xEE, 0xEE, 0x00, 0x00, | |
417 }; | |
418 #endif // CODE_VERSION == SIMULATION | |
419 const UWORD8 tty_patch_array[] = { | |
420 /* Tag */ 0x00, 0x00, 0x00, 0x00, | |
421 /* Vers */ 0x03, 0x00, 0x00, 0x00, | |
422 /* size */ 0x01, 0x00, 0x00, 0x00, | |
423 /* addr */ 0xde, 0x07, 0x03, 0x00, | |
424 0x0E,0x60, | |
425 /* Final record */ 0xAD, 0xDE, | |
426 /* size */ 0x00, 0x00, 0x00, 0x00, | |
427 /* addr */ 0xDD, 0xDD, 0x00, 0x00, | |
428 /* CRC */ 0xDD, 0xDD, 0x00, 0x00, | |
429 }; | |
430 /*-------------------------------------------------------*/ | 100 /*-------------------------------------------------------*/ |
431 /* l1_dyn_dwnld_initialize_var() */ | 101 /* l1_dyn_dwnld_initialize_var() */ |
432 /*-------------------------------------------------------*/ | 102 /*-------------------------------------------------------*/ |
433 /* Parameters : none */ | 103 /* Parameters : none */ |
434 /* Return : nothing */ | 104 /* Return : nothing */ |
454 l1s_dsp_com.dsp_ndb_ptr->a_background_tasks[C_BGD_DSP_DYN_DWNLD] = (API)((C_BGD_DSP_DYN_DWNLD<<11) | 0); | 124 l1s_dsp_com.dsp_ndb_ptr->a_background_tasks[C_BGD_DSP_DYN_DWNLD] = (API)((C_BGD_DSP_DYN_DWNLD<<11) | 0); |
455 l1s_dsp_com.dsp_ndb_ptr->d_background_enable&=(API)(~(1<<C_BGD_DSP_DYN_DWNLD)); | 125 l1s_dsp_com.dsp_ndb_ptr->d_background_enable&=(API)(~(1<<C_BGD_DSP_DYN_DWNLD)); |
456 | 126 |
457 if(l1s_dsp_com.dsp_ndb_ptr->d_max_background<(C_BGD_DSP_DYN_DWNLD+1)) | 127 if(l1s_dsp_com.dsp_ndb_ptr->d_max_background<(C_BGD_DSP_DYN_DWNLD+1)) |
458 l1s_dsp_com.dsp_ndb_ptr->d_max_background=(API)(C_BGD_DSP_DYN_DWNLD+1); | 128 l1s_dsp_com.dsp_ndb_ptr->d_max_background=(API)(C_BGD_DSP_DYN_DWNLD+1); |
459 #if (CODE_VERSION == SIMULATION || ((CHIPSET == 12) || (CHIPSET == 15))) | 129 |
460 #if (L1_MP3 == 1) | 130 dyn_dwnld_copy_MCU_vect[0] = gprs_patch_array; |
461 dyn_dwnld_copy_MCU_vect[0] = mp3_patch_array; | 131 dyn_dwnld_copy_MCU_vect[1] = amr_sch_patch_array; |
132 #if (L1_GTT == 1) | |
133 dyn_dwnld_copy_MCU_vect[2] = tty_patch_array; | |
462 #endif | 134 #endif |
463 dyn_dwnld_copy_MCU_vect[1] = amr_mms_patch_array; | 135 #if (MELODY_E2 == 1) |
464 dyn_dwnld_copy_MCU_vect[2] = e2_patch_array; | 136 dyn_dwnld_copy_MCU_vect[3] = amr_mms_patch_array; |
465 dyn_dwnld_copy_MCU_vect[3] = tty_patch_array; | 137 dyn_dwnld_copy_MCU_vect[4] = e2_patch_array; |
466 dyn_dwnld_copy_MCU_vect[4] = speech_acoustic_patch_array; | 138 #endif |
467 #if (L1_AAC == 1) | |
468 dyn_dwnld_copy_MCU_vect[5] = aac_patch_array; | |
469 #endif | |
470 #if (L1_PCM_EXTRACTION == 1) | |
471 dyn_dwnld_copy_MCU_vect[6] = pcm_patch_array; | |
472 #endif | |
473 #elif (CHIPSET == 10 && BOARD == 35) | |
474 dyn_dwnld_copy_MCU_vect[0] = amr_mms_patch_array; | |
475 dyn_dwnld_copy_MCU_vect[1] = tty_patch_array; | |
476 dyn_dwnld_copy_MCU_vect[2] = speech_acoustic_patch_array; | |
477 #endif | |
478 | 139 |
479 for(i=0;i<MAX_NUM_OF_PATCH_IDS;i++) | 140 for(i=0;i<MAX_NUM_OF_PATCH_IDS;i++) |
480 { | 141 { |
481 if (dyn_dwnld_copy_MCU_vect[i] != 0) | 142 if (dyn_dwnld_copy_MCU_vect[i] != 0) |
482 { | 143 { |
483 l1_set_dyn_dwnld_install_vect(size_vect,dyn_dwnld_address_vect,dyn_dwnld_crc_vect,dyn_dwnld_copy_MCU_vect[i],i); | 144 l1_set_dyn_dwnld_install_vect(size_vect,dyn_dwnld_address_vect,dyn_dwnld_crc_vect,dyn_dwnld_copy_MCU_vect[i],i); |
484 } | 145 } |
485 } | 146 } |
486 | 147 |
487 /*---------- Set L1A globals at phone init ----------------------------*/ | 148 /*---------- Set L1A globals at phone init ----------------------------*/ |
488 l1a.dyn_dwnld.melody0_E2_flag_activated = FALSE; | 149 l1a.dyn_dwnld.melody0_E2_flag_activated = FALSE; |
489 l1a.dyn_dwnld.melody1_E2_flag_activated = FALSE; | 150 l1a.dyn_dwnld.melody1_E2_flag_activated = FALSE; |
495 l1a.dyn_dwnld.patch_id[0] = 0xFFFF; //omaps00090550 | 156 l1a.dyn_dwnld.patch_id[0] = 0xFFFF; //omaps00090550 |
496 | 157 |
497 /**************************************************/ | 158 /**************************************************/ |
498 | 159 |
499 // Compute number of current primitives defined via compilation switch | 160 // Compute number of current primitives defined via compilation switch |
500 l1a.dyn_dwnld.num_of_primitives=0; | 161 l1a.dyn_dwnld.num_of_primitives = 2; |
501 #if (CODE_VERSION == SIMULATION || ((CHIPSET == 12) || (CHIPSET == 15))) | 162 #if (L1_GTT == 1) |
502 #if (L1_GTT == 1) | |
503 l1a.dyn_dwnld.num_of_primitives++; | |
504 #endif // L1_GTT | |
505 #if (L1_VOCODER_IF_CHANGE == 1) | |
506 l1a.dyn_dwnld.num_of_primitives++; | 163 l1a.dyn_dwnld.num_of_primitives++; |
507 #endif // L1_VOCODER_IF_CHANGE | 164 #endif // L1_GTT |
508 #if (AUDIO_TASK == 1) | 165 #if (MELODY_E2 == 1) |
509 #if (MELODY_E2 == 1) | 166 // Two primitives for MELODY E2 |
510 // Two primitves for MELODY E2 | 167 // FreeCalypso: apparently there are 3 in TCS211 |
511 l1a.dyn_dwnld.num_of_primitives+=2; | 168 l1a.dyn_dwnld.num_of_primitives += 3; |
512 #endif // AUDIO_TASK | 169 #endif // MELODY_E2 |
513 #endif // MELODY_E2 | |
514 #if (L1_MP3 == 1) | |
515 l1a.dyn_dwnld.num_of_primitives++; | |
516 #endif // L1_MP3 | |
517 #if (AUDIO_TASK == 1) | |
518 #if (L1_VOICE_MEMO_AMR == 1) | |
519 // Two primitves for L1_VOICE_MEMO_AMR | |
520 l1a.dyn_dwnld.num_of_primitives+=2; | |
521 #endif // AUDIO_TASK | |
522 #endif // L1_VOICE_MEMO_AMR | |
523 #if (L1_AAC == 1) | |
524 l1a.dyn_dwnld.num_of_primitives++; | |
525 #endif // L1_AAC | |
526 #if (L1_PCM_EXTRACTION == 1) | |
527 l1a.dyn_dwnld.num_of_primitives+=2; | |
528 #endif | |
529 | |
530 | |
531 #elif (CHIPSET == 10 && BOARD == 35) | |
532 | |
533 #if (L1_GTT == 1) | |
534 l1a.dyn_dwnld.num_of_primitives++; | |
535 #endif // L1_GTT | |
536 #if (L1_VOCODER_IF_CHANGE == 1) | |
537 l1a.dyn_dwnld.num_of_primitives++; | |
538 #endif // L1_VOCODER_IF_CHANGE | |
539 #if (AUDIO_TASK == 1) | |
540 #if (L1_VOICE_MEMO_AMR == 1) | |
541 // Two primitves for L1_VOICE_MEMO_AMR | |
542 l1a.dyn_dwnld.num_of_primitives+=2; | |
543 #endif // AUDIO_TASK | |
544 #endif // L1_VOICE_MEMO_AMR | |
545 #endif // CHIPSET | |
546 | |
547 | 170 |
548 for (i=l1a.dyn_dwnld.num_patches_installed;i<MAX_NUM_OF_PATCH_IDS;i++) | 171 for (i=l1a.dyn_dwnld.num_patches_installed;i<MAX_NUM_OF_PATCH_IDS;i++) |
549 { | 172 { |
550 l1a.dyn_dwnld.patch_id[i] = 0xFFFF; //omaps00090550 ; | 173 l1a.dyn_dwnld.patch_id[i] = 0xFFFF; //omaps00090550 ; |
551 l1a.dyn_dwnld.next_patch_id[i] = 0xFFFF; //omaps00090550 ; | 174 l1a.dyn_dwnld.next_patch_id[i] = 0xFFFF; //omaps00090550 ; |
599 l1a_apihisr_com.dyn_dwnld.command.restart = FALSE; | 222 l1a_apihisr_com.dyn_dwnld.command.restart = FALSE; |
600 l1a_apihisr_com.dyn_dwnld.uninstall_parameters.num_of_elem = 0; | 223 l1a_apihisr_com.dyn_dwnld.uninstall_parameters.num_of_elem = 0; |
601 | 224 |
602 for (indx_loop = 0 ; indx_loop < MAX_NUM_OF_PATCH_IDS ; indx_loop++ ) | 225 for (indx_loop = 0 ; indx_loop < MAX_NUM_OF_PATCH_IDS ; indx_loop++ ) |
603 { | 226 { |
604 l1a_apihisr_com.dyn_dwnld.uninstall_parameters.address[indx_loop] = 0; | 227 l1a_apihisr_com.dyn_dwnld.uninstall_parameters.address[indx_loop] |
605 l1a_apihisr_com.dyn_dwnld.copy_parameters.patch_data[indx_loop].start_MCU_copy_address = 0; | 228 = 0; |
606 l1a_apihisr_com.dyn_dwnld.copy_parameters.patch_data[indx_loop].address_to_install = 0; | 229 l1a_apihisr_com.dyn_dwnld.copy_parameters.start_MCU_copy_address[indx_loop] |
607 l1a_apihisr_com.dyn_dwnld.copy_parameters.patch_data[indx_loop].size_array = 0; | 230 = 0; |
231 l1a_apihisr_com.dyn_dwnld.copy_parameters.address_to_install[indx_loop] | |
232 = 0; | |
233 l1a_apihisr_com.dyn_dwnld.copy_parameters.size_array[indx_loop] | |
234 = 0; | |
608 } | 235 } |
609 | 236 |
610 l1a_apihisr_com.dyn_dwnld.copy_parameters.size_of_dwnld_area = 0; | 237 l1a_apihisr_com.dyn_dwnld.copy_parameters.size_of_dwnld_area = 0; |
611 l1a_apihisr_com.dyn_dwnld.copy_parameters.start_of_dwnld_area = 0; | 238 l1a_apihisr_com.dyn_dwnld.copy_parameters.start_of_dwnld_area = 0; |
612 l1a_apihisr_com.dyn_dwnld.copy_parameters.num_of_elem = 0; | 239 l1a_apihisr_com.dyn_dwnld.copy_parameters.num_of_elem = 0; |