FreeCalypso > hg > tcs211-l1-reconst
annotate chipsetsw/layer1/cfile/l1_api_hisr.c @ 41:9d4ff52edc36
l1_cmplx.c: l1ddsp_read_iq_dump() calls removed to pass link
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Wed, 28 Oct 2015 16:04:40 +0000 |
parents | 5cb5e5f229e4 |
children | da708f6be90f |
rev | line source |
---|---|
33
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
1 /************* Revision Controle System Header ************* |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
2 * GSM Layer 1 software |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
3 * L1_API_HISR.C |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
4 * |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
5 * Filename l1_api_hisr.c |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
6 * Copyright 2003 (C) Texas Instruments |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
7 * |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
8 ************* Revision Controle System Header *************/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
9 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
10 #include "l1_confg.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
11 #include "nucleus.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
12 #include "sys_types.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
13 #include "l1_types.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
14 #include "l1audio_cust.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
15 #include "l1audio_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
16 #include "l1audio_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
17 #include "l1_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
18 #include "cust_os.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
19 #include "l1tm_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
20 #if (L1_GTT == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
21 #include "l1gtt_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
22 #include "l1gtt_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
23 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
24 #if (L1_MP3 == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
25 #include "l1mp3_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
26 #include "l1mp3_signa.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
27 #include "l1mp3_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
28 #include "l1mp3_proto.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
29 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
30 #if (L1_MIDI == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
31 #include "l1midi_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
32 #include "l1midi_signa.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
33 #include "l1midi_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
34 #include "l1midi_proto.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
35 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
36 #if (L1_AAC == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
37 #include "l1aac_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
38 #include "l1aac_signa.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
39 #include "l1aac_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
40 #include "l1aac_proto.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
41 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
42 #if (L1_DYN_DSP_DWNLD==1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
43 #include "l1_dyn_dwl_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
44 #include "l1_dyn_dwl_msgty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
45 #include "l1_dyn_dwl_const.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
46 #include "l1_dyn_dwl_signa.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
47 #include "l1_dyn_dwl_error.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
48 #include "l1_dyn_dwl_proto.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
49 #include "l1_api_hisr.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
50 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
51 #include "l1_defty.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
52 #include "l1_api_hisr.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
53 #include "l1audio_signa.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
54 #include "l1_varex.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
55 #include "l1_macro.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
56 #include "mem.h" |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
57 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
58 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
59 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
60 /* l1_api_handler() */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
61 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
62 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
63 /* Parameters : none */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
64 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
65 /* Return : n/a */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
66 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
67 /* Description : API interrupt handler, multiplexed for: */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
68 /* 1) audio sources: MP3 or AAC */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
69 /* 2) modem sources: USF */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
70 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
71 // The API Interrupt is multiplexed between (DYN DWNLD, MP3 ,AAC) and FAST USF. |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
72 // DYN DWNLD, MP3 and AAC are mutually exclusive and hence only one would be |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
73 // active at one time. But FAST USF would co-exist with any of the them and hence |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
74 // there needs to be a way to distinguish the two sources of the API Interrupt. A flag |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
75 // d_dsp_hint_flag is used by the DSP to signify the source of the interrupt. The bit |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
76 // configuration of d_dsp_hint_flag is |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
77 // 15 14 13 12 | 11 10 9 8 | 7 6 5 4 | 3 2 1 0 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
78 // | |____> Fast USF |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
79 // |______> (DYN DWNLD, MP3, AAC) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
80 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
81 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
82 void l1_api_handler() |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
83 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
84 #if (FF_L1_IT_DSP_USF == 1) || (FF_L1_IT_DSP_DTX == 1) || (FF_L1_FAST_DECODING == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
85 extern NU_HISR api_modemHISR; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
86 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
87 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
88 #if ( (L1_MP3 == 1) || (L1_AAC == 1) || (L1_MIDI == 1) || (L1_DYN_DSP_DWNLD == 1) ) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
89 extern NU_HISR apiHISR; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
90 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
91 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
92 #if (FF_L1_IT_DSP_USF == 1) || (FF_L1_IT_DSP_DTX == 1) || (FF_L1_FAST_DECODING == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
93 #if (FF_L1_FAST_DECODING == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
94 if (l1s_dsp_com.dsp_ndb_ptr->d_dsp_hint_flag & (1 << B_FAST_DECODING_FLAG)) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
95 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
96 // Flag HISR to be scheduled |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
97 l1a_apihisr_com.fast_decoding.pending = TRUE; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
98 // Clear API ISR condition |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
99 l1s_dsp_com.dsp_ndb_ptr->d_dsp_hint_flag &= ~(1 << B_FAST_DECODING_FLAG); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
100 l1a_apihisr_com.fast_decoding.crc_error = |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
101 l1s_dsp_com.dsp_ndb_ptr->d_fast_paging_data & (C_FAST_DECODING_CRC_FIRE1); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
102 NU_Activate_HISR(&api_modemHISR); // activate API modem HISR |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
103 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
104 #endif /* FF_L1_FAST_DECODING */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
105 #if (FF_L1_IT_DSP_USF == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
106 if (l1s_dsp_com.dsp_ndb_ptr->d_dsp_hint_flag & (1 << B_USF_HINT_ISSUED)) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
107 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
108 // Flag HISR to be scheduled |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
109 l1a_apihisr_com.usf.pending = TRUE; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
110 // Clear API ISR condition |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
111 l1s_dsp_com.dsp_ndb_ptr->d_dsp_hint_flag &= ~(1 << B_USF_HINT_ISSUED); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
112 NU_Activate_HISR(&api_modemHISR); // activate API modem HISR |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
113 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
114 #endif //(FF_L1_IT_DSP_USF == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
115 #if (FF_L1_IT_DSP_DTX == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
116 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
117 if ((l1s_dsp_com.dsp_ndb_ptr->d_dsp_hint_flag & 0x4 ) != 0) // DTX interrupt set by 3rd bit position from left |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
118 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
119 // Flag HISR to be scheduled |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
120 l1a_apihisr_com.dtx.pending = TRUE; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
121 // Clear API ISR condition |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
122 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
123 l1s_dsp_com.dsp_ndb_ptr->d_dsp_hint_flag &= 0xFB; //reset the 3rd bit position |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
124 NU_Activate_HISR(&api_modemHISR); // activate API modem HISR |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
125 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
126 #endif //(FF_L1_IT_DSP_DTX == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
127 // Call the API HISR when MP3, AAC, DYN DWNLD comes |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
128 #if ( (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_AAC == 1) || (L1_DYN_DSP_DWNLD == 1) ) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
129 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
130 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
131 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
132 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
133 if (l1s_dsp_com.dsp_ndb_ptr->d_dsp_aud_hint_flag & (1 << B_NON_USF_HINT_ISSUED)) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
134 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
135 // Clear API ISR condition |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
136 l1s_dsp_com.dsp_ndb_ptr->d_dsp_aud_hint_flag = 0; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
137 //Activate the API HISR |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
138 NU_Activate_HISR(&apiHISR); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
139 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
140 #endif // (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_DYN_DSP_DWNLD == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
141 #endif //(FF_L1_IT_DSP_USF == 1) || //(FF_L1_IT_DSP_DTX == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
142 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
143 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
144 //When Fast USF is not enabled, then the API HISR needs to be called every time the DSP |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
145 //sends a HINT interrupt. |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
146 #if (!FF_L1_IT_DSP_USF) && (!FF_L1_IT_DSP_DTX) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
147 #if ( (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_AAC == 1) || (L1_DYN_DSP_DWNLD == 1) ) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
148 NU_Activate_HISR(&apiHISR); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
149 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
150 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
151 //NU_Activate_HISR(&apiHISR); //hack remove |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
152 return; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
153 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
154 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
155 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
156 /* api_hisr() */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
157 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
158 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
159 /* Parameters : none */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
160 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
161 /* Return : n/a */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
162 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
163 /* Description : main function dealing with DSP->MCU interrupt */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
164 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
165 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
166 void api_hisr(void) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
167 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
168 #if (L1_MP3 == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
169 if(l1a_apihisr_com.mp3.running==TRUE) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
170 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
171 l1mp3_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
172 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
173 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
174 #if (L1_MIDI == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
175 if(l1_apihisr.midi.running==TRUE) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
176 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
177 l1midi_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
178 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
179 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
180 #if (L1_AAC == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
181 if(l1a_apihisr_com.aac.running==TRUE) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
182 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
183 l1aac_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
184 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
185 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
186 #if (L1_DYN_DSP_DWNLD == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
187 if( l1_apihisr.dyn_dwnld.running == TRUE ) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
188 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
189 l1_dyn_dwnld_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
190 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
191 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
192 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
193 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
194 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
195 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
196 /* api_modem_hisr() */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
197 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
198 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
199 /* Parameters : none */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
200 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
201 /* Return : n/a */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
202 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
203 /* Description : main function dealing with DSP->MCU interrupt */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
204 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
205 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
206 void api_modem_hisr(void) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
207 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
208 #if (FF_L1_FAST_DECODING == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
209 if(l1a_apihisr_com.fast_decoding.pending == TRUE) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
210 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
211 extern void l1_fast_decoding_apihisr(void); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
212 l1_fast_decoding_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
213 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
214 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
215 #endif /* FF_L1_FAST_DECODING */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
216 #if (FF_L1_IT_DSP_USF == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
217 if(l1a_apihisr_com.usf.pending == TRUE) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
218 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
219 extern void l1usf_apihisr(void); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
220 l1usf_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
221 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
222 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
223 #if (FF_L1_IT_DSP_DTX == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
224 if(l1a_apihisr_com.dtx.pending == TRUE) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
225 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
226 extern void l1dtx_apihisr(void); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
227 l1dtx_apihisr(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
228 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
229 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
230 } |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
231 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
232 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
233 /* l1_trigger_api_interrupt() */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
234 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
235 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
236 /* Parameters : none */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
237 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
238 /* Return : n/a */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
239 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
240 /* Description : Trigger an MCU->DSP interrupt */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
241 /* */ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
242 /*-------------------------------------------------------------*/ |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
243 void l1_trigger_api_interrupt() |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
244 { |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
245 #if (CODE_VERSION == SIMULATION) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
246 extern void sim_it_mcu_to_dsp(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
247 sim_it_mcu_to_dsp(); |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
248 #else |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
249 #if (L1_DYN_DSP_DWNLD == 1) |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
250 *((volatile UWORD32 *)MEM_APIC_REG)|=ID_API_INT; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
251 #else |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
252 *((volatile UWORD32 *)MEM_APIC_REG)|=0x4; |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
253 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
254 #endif |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
255 |
5cb5e5f229e4
l1_api_hisr.c pulled from LoCosto
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents:
15
diff
changeset
|
256 } |