FreeCalypso > hg > freecalypso-citrine
comparison L1/cfile/l1_api_hisr.c @ 8:b36540edb046
L1/cfile/l1_*.c: initial import from tcs211-l1-reconst
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 09 Jun 2016 05:45:03 +0000 |
| parents | 75a11d740a02 |
| children | b80f0c5016ee |
comparison
equal
deleted
inserted
replaced
| 7:b7d857ebc9ca | 8:b36540edb046 |
|---|---|
| 5 * Filename l1_api_hisr.c | 5 * Filename l1_api_hisr.c |
| 6 * Copyright 2003 (C) Texas Instruments | 6 * Copyright 2003 (C) Texas Instruments |
| 7 * | 7 * |
| 8 ************* Revision Controle System Header *************/ | 8 ************* Revision Controle System Header *************/ |
| 9 | 9 |
| 10 #include "config.h" | |
| 11 #include "l1_confg.h" | 10 #include "l1_confg.h" |
| 12 #include "../../nucleus/nucleus.h" | 11 #include "nucleus.h" |
| 13 #include "sys_types.h" | 12 #include "sys_types.h" |
| 14 #include "l1_types.h" | 13 #include "l1_types.h" |
| 15 #include "l1audio_cust.h" | 14 #include "l1audio_cust.h" |
| 16 #include "l1audio_defty.h" | 15 #include "l1audio_defty.h" |
| 17 #include "l1audio_const.h" | 16 #include "l1audio_const.h" |
| 18 #include "l1_const.h" | 17 #include "l1_const.h" |
| 19 #include "../../gpf/inc/cust_os.h" | 18 #include "cust_os.h" |
| 20 #include "l1tm_defty.h" | 19 #include "l1tm_defty.h" |
| 21 #if (L1_GTT == 1) | 20 #if (L1_GTT == 1) |
| 22 #include "l1gtt_const.h" | 21 #include "l1gtt_const.h" |
| 23 #include "l1gtt_defty.h" | 22 #include "l1gtt_defty.h" |
| 24 #endif | 23 #endif |
| 52 #include "l1_defty.h" | 51 #include "l1_defty.h" |
| 53 #include "l1_api_hisr.h" | 52 #include "l1_api_hisr.h" |
| 54 #include "l1audio_signa.h" | 53 #include "l1audio_signa.h" |
| 55 #include "l1_varex.h" | 54 #include "l1_varex.h" |
| 56 #include "l1_macro.h" | 55 #include "l1_macro.h" |
| 57 #include "../../bsp/mem.h" | 56 #include "mem.h" |
| 58 | 57 |
| 59 | 58 |
| 60 /*-------------------------------------------------------------*/ | 59 /*-------------------------------------------------------------*/ |
| 61 /* l1_api_handler() */ | 60 /* l1_api_handler() */ |
| 62 /*-------------------------------------------------------------*/ | 61 /*-------------------------------------------------------------*/ |
| 139 NU_Activate_HISR(&apiHISR); | 138 NU_Activate_HISR(&apiHISR); |
| 140 } | 139 } |
| 141 #endif // (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_DYN_DSP_DWNLD == 1) | 140 #endif // (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_DYN_DSP_DWNLD == 1) |
| 142 #endif //(FF_L1_IT_DSP_USF == 1) || //(FF_L1_IT_DSP_DTX == 1) | 141 #endif //(FF_L1_IT_DSP_USF == 1) || //(FF_L1_IT_DSP_DTX == 1) |
| 143 | 142 |
| 143 #if 0 /* FreeCalypso Frankenstein */ | |
| 144 /* This is the original LoCosto code */ | |
| 144 | 145 |
| 145 //When Fast USF is not enabled, then the API HISR needs to be called every time the DSP | 146 //When Fast USF is not enabled, then the API HISR needs to be called every time the DSP |
| 146 //sends a HINT interrupt. | 147 //sends a HINT interrupt. |
| 147 #if (!FF_L1_IT_DSP_USF) && (!FF_L1_IT_DSP_DTX) | 148 #if (!FF_L1_IT_DSP_USF) && (!FF_L1_IT_DSP_DTX) |
| 148 #if ( (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_AAC == 1) || (L1_DYN_DSP_DWNLD == 1) ) | 149 #if ( (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_AAC == 1) || (L1_DYN_DSP_DWNLD == 1) ) |
| 149 NU_Activate_HISR(&apiHISR); | 150 NU_Activate_HISR(&apiHISR); |
| 150 #endif | 151 #endif |
| 151 #endif | 152 #endif |
| 152 //NU_Activate_HISR(&apiHISR); //hack remove | 153 //NU_Activate_HISR(&apiHISR); //hack remove |
| 153 return; | 154 return; |
| 155 | |
| 156 #else | |
| 157 | |
| 158 /* reconstruction of what the TCS211 code was probably like */ | |
| 159 #if (L1_DYN_DSP_DWNLD == 1) | |
| 160 if( l1_apihisr.dyn_dwnld.running == TRUE ) | |
| 161 { | |
| 162 NU_Activate_HISR(&apiHISR); | |
| 163 } | |
| 164 #endif | |
| 165 | |
| 166 #endif | |
| 154 } | 167 } |
| 155 | 168 |
| 156 /*-------------------------------------------------------------*/ | 169 /*-------------------------------------------------------------*/ |
| 157 /* api_hisr() */ | 170 /* api_hisr() */ |
| 158 /*-------------------------------------------------------------*/ | 171 /*-------------------------------------------------------------*/ |
| 191 } | 204 } |
| 192 #endif | 205 #endif |
| 193 | 206 |
| 194 } | 207 } |
| 195 | 208 |
| 209 #if 0 /* FreeCalypso */ | |
| 196 /*-------------------------------------------------------------*/ | 210 /*-------------------------------------------------------------*/ |
| 197 /* api_modem_hisr() */ | 211 /* api_modem_hisr() */ |
| 198 /*-------------------------------------------------------------*/ | 212 /*-------------------------------------------------------------*/ |
| 199 /* */ | 213 /* */ |
| 200 /* Parameters : none */ | 214 /* Parameters : none */ |
| 227 extern void l1dtx_apihisr(void); | 241 extern void l1dtx_apihisr(void); |
| 228 l1dtx_apihisr(); | 242 l1dtx_apihisr(); |
| 229 } | 243 } |
| 230 #endif | 244 #endif |
| 231 } | 245 } |
| 246 #endif /* FreeCalypso */ | |
| 232 | 247 |
| 233 /*-------------------------------------------------------------*/ | 248 /*-------------------------------------------------------------*/ |
| 234 /* l1_trigger_api_interrupt() */ | 249 /* l1_trigger_api_interrupt() */ |
| 235 /*-------------------------------------------------------------*/ | 250 /*-------------------------------------------------------------*/ |
| 236 /* */ | 251 /* */ |
