comparison L1/cfile/l1_func.c @ 9:b80f0c5016ee

L1/cfile: new code compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 06:28:19 +0000
parents b36540edb046
children
comparison
equal deleted inserted replaced
8:b36540edb046 9:b80f0c5016ee
7 * 7 *
8 ************* Revision Controle System Header *************/ 8 ************* Revision Controle System Header *************/
9 9
10 #define L1_FUNC_C 10 #define L1_FUNC_C
11 11
12 #include "config.h"
13 #include "l1_confg.h"
12 #include "l1_macro.h" 14 #include "l1_macro.h"
13 #include "l1_confg.h"
14 15
15 #if (CODE_VERSION == SIMULATION) 16 #if (CODE_VERSION == SIMULATION)
16 #include <string.h> 17 #include <string.h>
17 #include "l1_types.h" 18 #include "l1_types.h"
18 #include "sys_types.h" 19 #include "sys_types.h"
101 //ADDED FOR AAC 102 //ADDED FOR AAC
102 #if (L1_AAC == 1) 103 #if (L1_AAC == 1)
103 #include "l1aac_defty.h" 104 #include "l1aac_defty.h"
104 #endif 105 #endif
105 #include "l1_defty.h" 106 #include "l1_defty.h"
106 #include "cust_os.h" 107 #include "../../gpf/inc/cust_os.h"
107 #include "l1_msgty.h" 108 #include "l1_msgty.h"
108 #include "l1_varex.h" 109 #include "l1_varex.h"
109 #include "l1_proto.h" 110 #include "l1_proto.h"
110 #include "l1_mftab.h" 111 #include "l1_mftab.h"
111 #include "l1_tabs.h" 112 #include "l1_tabs.h"
116 #include "inth.h" 117 #include "inth.h"
117 #include "clkm.h" 118 #include "clkm.h"
118 #include "rhea_arm.h" 119 #include "rhea_arm.h"
119 #include "dma.h" 120 #include "dma.h"
120 #include "ulpd.h" 121 #include "ulpd.h"
121 #include "leadapi.h" 122 #include "../dsp/leadapi.h"
122 123
123 #if (OP_L1_STANDALONE) 124 #if (OP_L1_STANDALONE)
124 #if (CHIPSET == 4) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || \ 125 #if (CHIPSET == 4) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || \
125 (CHIPSET == 11) || (CHIPSET == 12) || (CHIPSET == 15) 126 (CHIPSET == 11) || (CHIPSET == 12) || (CHIPSET == 15)
126 #include "dynamic_clock.h" 127 #include "dynamic_clock.h"
147 148
148 #if (CODE_VERSION != SIMULATION) 149 #if (CODE_VERSION != SIMULATION)
149 150
150 /* DSP patch */ 151 /* DSP patch */
151 #if (DWNLD == NO_DWNLD) 152 #if (DWNLD == NO_DWNLD)
152 const UWORD8 patch_array[1]; 153 const UWORD8 patch_array[1] = {0};
153 const UWORD8 DspCode_array[1] ; 154 const UWORD8 DspCode_array[1] = {0};
154 const UWORD8 DspData_array[1]; 155 const UWORD8 DspData_array[1] = {0};
155 #elif (DWNLD == PATCH_DWNLD) 156 #elif (DWNLD == PATCH_DWNLD)
156 extern const UWORD8 patch_array[] ; 157 extern const UWORD8 patch_array[];
157 const UWORD8 DspCode_array[1] ; 158 const UWORD8 DspCode_array[1] = {0};
158 const UWORD8 DspData_array[1]; 159 const UWORD8 DspData_array[1] = {0};
159 #elif (DWNLD == DSP_DWNLD) 160 #elif (DWNLD == DSP_DWNLD)
160 const UWORD8 patch_array[1] ; 161 const UWORD8 patch_array[1] = {0};
161 extern const UWORD8 DspCode_array[] ; 162 extern const UWORD8 DspCode_array[];
162 extern const UWORD8 DspData_array[]; 163 extern const UWORD8 DspData_array[];
163 #else 164 #else
164 extern const UWORD8 patch_array[] ; 165 extern const UWORD8 patch_array[];
165 extern const UWORD8 DspCode_array[] ; 166 extern const UWORD8 DspCode_array[];
166 extern const UWORD8 DspData_array[]; 167 extern const UWORD8 DspData_array[];
167 #endif 168 #endif
168 169
169 extern const UWORD8 bootCode[] ; 170 extern const UWORD8 bootCode[] ;
170 /* DSP patch */ 171 /* DSP patch */