FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/L1/audio_cfile/l1audio_init.c @ 611:bbe2b0d17d1e
gsm-fw/L1/audio_cfile/l1audio_init.c: hack to pass compilation w/o AUDIO_TASK
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 29 Aug 2014 05:44:42 +0000 |
parents | 3121e35f422c |
children |
comparison
equal
deleted
inserted
replaced
610:3121e35f422c | 611:bbe2b0d17d1e |
---|---|
140 #if (CODE_VERSION == SIMULATION) | 140 #if (CODE_VERSION == SIMULATION) |
141 extern T_DRC_MCU_DSP drc_ndb_sim; | 141 extern T_DRC_MCU_DSP drc_ndb_sim; |
142 #endif | 142 #endif |
143 #endif | 143 #endif |
144 #if(L1_BT_AUDIO ==1) | 144 #if(L1_BT_AUDIO ==1) |
145 extern T_L1_BT_AUDIO bt_audio; | 145 extern T_L1_BT_AUDIO bt_audio; |
146 #endif | 146 #endif |
147 | |
148 /* | |
149 * FreeCalypso hack: the version of l1_confg.h in the Leonardo semi-src | |
150 * sets AUDIO_TASK to 1 unconditionally, thus it appears that by the | |
151 * time TCS211 came around, TI stopped supporting and testing the | |
152 * sans-AUDIO_TASK configuration. We do wish to support it in FreeCalypso | |
153 * though. Attempting to compile this module w/o AUDIO_TASK failed | |
154 * because some preprocessor constant definitions were missing. | |
155 * All 3 offending constants are defined in l1audio_const.h, but only | |
156 * when AUDIO_TASK is enabled. The following hack is our workaround. | |
157 */ | |
158 #if !AUDIO_TASK | |
159 #define C_BGD_RECOGN 5 | |
160 #define C_BGD_ALIGN 6 | |
161 #define NO_MELODY_SELECTED (0) | |
162 #endif | |
163 | |
147 /**************************************/ | 164 /**************************************/ |
148 /* Prototypes for L1 initialization */ | 165 /* Prototypes for L1 initialization */ |
149 /**************************************/ | 166 /**************************************/ |
150 void l1audio_dsp_init (void); | 167 void l1audio_dsp_init (void); |
151 void l1audio_initialize_var (void); | 168 void l1audio_initialize_var (void); |