1 |
kusanagi |
1.1 |
/**************************************************************************** |
2 |
|
|
/* F i l e D a t a |
3 |
|
|
/* |
4 |
|
|
/* Module : BasicSW |
5 |
|
|
/* C.I. No. : |
6 |
|
|
/* $Revision: 1.1.1.1 $ |
7 |
|
|
/* $Date: 2003/08/04 09:40:21 $ |
8 |
|
|
/* Belonging to : |
9 |
|
|
/* : |
10 |
|
|
/* $RCSfile: IM_InterruptManager_p.c,v $ |
11 |
|
|
/* Program Type : |
12 |
|
|
/* Sub-modules : |
13 |
|
|
/* |
14 |
|
|
/**************************************************************************** |
15 |
|
|
/* S W D e v e l o p m e n t E n v i r o n m e n t |
16 |
|
|
/* |
17 |
|
|
/* Host system : |
18 |
|
|
/* SW Compiler : |
19 |
|
|
/* $Author: sebastiani $ |
20 |
|
|
/* : |
21 |
|
|
/**************************************************************************** |
22 |
|
|
/* U p d a t i n g |
23 |
|
|
/* |
24 |
|
|
/* $Log: IM_InterruptManager_p.c,v $ |
25 |
|
|
/* Revision 1.1.1.1 2003/08/04 09:40:21 sebastiani |
26 |
|
|
/* Imported sources laben rel. 19.06.2003 integrated with pam2 |
27 |
|
|
/* |
28 |
|
|
/* Revision 1.3 2002/05/09 08:16:34 zulia |
29 |
|
|
/* * acceptance release |
30 |
|
|
/* |
31 |
|
|
/* |
32 |
|
|
/*****************************************************************************/ |
33 |
|
|
|
34 |
|
|
/*============================= Include File ================================*/ |
35 |
|
|
|
36 |
|
|
#include <src/BasicSW/InterruptManager/IM_InterruptManager_p.h> |
37 |
|
|
#include <src/BasicSW/InterruptManager/IM_InterruptManager_op.h> |
38 |
|
|
|
39 |
|
|
|
40 |
|
|
/*****************************************************************************/ |
41 |
|
|
|
42 |
|
|
/*I M _ I n t e r r u p t M a n a g e r P R O V I D E D I N T E R F A C E*/ |
43 |
|
|
|
44 |
|
|
/*****************************************************************************/ |
45 |
|
|
|
46 |
|
|
/*****************************************************************************/ |
47 |
|
|
/* @Function: IM_piIntInterruptManager */ |
48 |
|
|
/* @Purpose : */ |
49 |
|
|
/* Provided Interface to implement the InterruptManager object */ |
50 |
|
|
/* initialization. */ |
51 |
|
|
/* */ |
52 |
|
|
/* @@ */ |
53 |
|
|
/* @Parameter Name @Mode @Description */ |
54 |
|
|
/* status_code OUT Return code */ |
55 |
|
|
/* @@ */ |
56 |
|
|
/*****************************************************************************/ |
57 |
|
|
|
58 |
|
|
status_code IM_piIntInterruptManager (void) |
59 |
|
|
{ |
60 |
|
|
status_code status; |
61 |
|
|
|
62 |
|
|
status =IM_opIntInterruptManager(); |
63 |
|
|
return (status); |
64 |
|
|
|
65 |
|
|
} |
66 |
|
|
|
67 |
|
|
|
68 |
|
|
/*****************************************************************************/ |
69 |
|
|
/* @Function: IM_ihDataAccessINT */ |
70 |
|
|
/* @Purpose : */ |
71 |
|
|
/* Provided Interface to implement the interrupt handler of the Erc32 */ |
72 |
|
|
/* Data Access exeception. */ |
73 |
|
|
/* */ |
74 |
|
|
/* @@ */ |
75 |
|
|
/* @Parameter Name @Mode @Description */ |
76 |
|
|
/* IN */ |
77 |
|
|
/* OUT */ |
78 |
|
|
/* @@ */ |
79 |
|
|
/*****************************************************************************/ |
80 |
|
|
|
81 |
|
|
void IM_ihDataAccessINT (void) |
82 |
|
|
{ |
83 |
|
|
|
84 |
|
|
IM_opDataAccessINT(); |
85 |
|
|
|
86 |
|
|
} |
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
/*****************************************************************************/ |
91 |
|
|
/* @Function: IM_ihDataAccessINT */ |
92 |
|
|
/* @Purpose : */ |
93 |
|
|
/* Provided Interface to implement the interrupt handler of the Erc32 */ |
94 |
|
|
/* Instruction Access exeception. */ |
95 |
|
|
/* */ |
96 |
|
|
/* @@ */ |
97 |
|
|
/* @Parameter Name @Mode @Description */ |
98 |
|
|
/* IN */ |
99 |
|
|
/* OUT */ |
100 |
|
|
/* @@ */ |
101 |
|
|
/*****************************************************************************/ |
102 |
|
|
|
103 |
|
|
void IM_ihInstructionAccessINT (void) |
104 |
|
|
{ |
105 |
|
|
|
106 |
|
|
IM_opInstructionAccessINT(); |
107 |
|
|
|
108 |
|
|
} |
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
/*****************************************************************************/ |
113 |
|
|
/* @Function: IM_ihExternalINT1 */ |
114 |
|
|
/* @Purpose : */ |
115 |
|
|
/* Provided Interface to implement the interrupt handler of th e */ |
116 |
|
|
/* External INT 1. This interrupt is connected to the CRIMEA component. */ |
117 |
|
|
/* */ |
118 |
|
|
/* @@ */ |
119 |
|
|
/* @Parameter Name @Mode @Description */ |
120 |
|
|
/* IN */ |
121 |
|
|
/* OUT */ |
122 |
|
|
/* @@ */ |
123 |
|
|
/*****************************************************************************/ |
124 |
|
|
|
125 |
|
|
void IM_ihExternalINT1 (void) |
126 |
|
|
{ |
127 |
|
|
|
128 |
|
|
IM_opExternalINT1(); |
129 |
|
|
|
130 |
|
|
} |
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
/*****************************************************************************/ |
135 |
|
|
/* @Function: IM_ihExternalINT2 */ |
136 |
|
|
/* @Purpose : */ |
137 |
|
|
/* Provided Interface to implement the interrupt handler of the External */ |
138 |
|
|
/* INT 2. This interrupt is connected to the DMA Read Controller CH2 */ |
139 |
|
|
/* */ |
140 |
|
|
/* @@ */ |
141 |
|
|
/* @Parameter Name @Mode @Description */ |
142 |
|
|
/* IN */ |
143 |
|
|
/* OUT */ |
144 |
|
|
/* @@ */ |
145 |
|
|
/*****************************************************************************/ |
146 |
|
|
|
147 |
|
|
void IM_ihExternalINT2 (void) |
148 |
|
|
{ |
149 |
|
|
|
150 |
|
|
IM_opExternalINT2(); |
151 |
|
|
|
152 |
|
|
} |
153 |
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
/*****************************************************************************/ |
157 |
|
|
/* @Function: IM_ihExternalINT3 */ |
158 |
|
|
/* @Purpose : */ |
159 |
|
|
/* Provided Interface to implement the interrupt handler of the External */ |
160 |
|
|
/* INT 3. This interrupt is connected to the DMA Read Controller CH1 */ |
161 |
|
|
/* */ |
162 |
|
|
/* @@ */ |
163 |
|
|
/* @Parameter Name @Mode @Description */ |
164 |
|
|
/* IN */ |
165 |
|
|
/* OUT */ |
166 |
|
|
/* @@ */ |
167 |
|
|
/*****************************************************************************/ |
168 |
|
|
|
169 |
|
|
void IM_ihExternalINT3 (void) |
170 |
|
|
{ |
171 |
|
|
|
172 |
|
|
IM_opExternalINT3 (); |
173 |
|
|
|
174 |
|
|
} |
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
/*****************************************************************************/ |
179 |
|
|
/* @Function: IM_ihExternalINT4 */ |
180 |
|
|
/* @Purpose : */ |
181 |
|
|
/* Provided Interface to implement the interrupt handler of the External */ |
182 |
|
|
/* INT 4. This interrupt is connected to the DMA Write Controller. */ |
183 |
|
|
/* */ |
184 |
|
|
/* @@ */ |
185 |
|
|
/* @Parameter Name @Mode @Description */ |
186 |
|
|
/* IN */ |
187 |
|
|
/* OUT */ |
188 |
|
|
/* @@ */ |
189 |
|
|
/*****************************************************************************/ |
190 |
|
|
|
191 |
|
|
void IM_ihExternalINT4 (void) |
192 |
|
|
{ |
193 |
|
|
|
194 |
|
|
IM_opExternalINT4 (); |
195 |
|
|
|
196 |
|
|
} |
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
/*****************************************************************************/ |
201 |
|
|
/* @Function: IM_ihExternalINT5 */ |
202 |
|
|
/* @Purpose : */ |
203 |
|
|
/* Provided Interface to implement the interrupt handler of the External */ |
204 |
|
|
/* INT 5. This interrupt is connected to the Cross Coupling Module. */ |
205 |
|
|
/* */ |
206 |
|
|
/* @@ */ |
207 |
|
|
/* @Parameter Name @Mode @Description */ |
208 |
|
|
/* IN */ |
209 |
|
|
/* OUT */ |
210 |
|
|
/* @@ */ |
211 |
|
|
/*****************************************************************************/ |
212 |
|
|
|
213 |
|
|
void IM_ihExternalINT5 (void) |
214 |
|
|
{ |
215 |
|
|
|
216 |
|
|
IM_opExternalINT5 (); |
217 |
|
|
|
218 |
|
|
} |
219 |
|
|
|
220 |
|
|
|
221 |
|
|
/*****************************************************************************/ |
222 |
|
|
/* @Function: IM_ihNullINT */ |
223 |
|
|
/* @Purpose : */ |
224 |
|
|
/* Provided Interface to implement the interrupt handler that nothing */ |
225 |
|
|
/* doesn't perform. */ |
226 |
|
|
/* */ |
227 |
|
|
/* @@ */ |
228 |
|
|
/* @Parameter Name @Mode @Description */ |
229 |
|
|
/* IN */ |
230 |
|
|
/* OUT */ |
231 |
|
|
/* @@ */ |
232 |
|
|
/*****************************************************************************/ |
233 |
|
|
|
234 |
|
|
void IM_ihNullINT (void) |
235 |
|
|
{ |
236 |
|
|
|
237 |
|
|
IM_opNullINT (); |
238 |
|
|
|
239 |
|
|
} |
240 |
|
|
|