Rev 24 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | /*#######################################################################################*/ |
2 | /* !!! THIS IS NOT FREE SOFTWARE !!! */ |
||
3 | /*#######################################################################################*/ |
||
4 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
5 | // + Copyright (c) 2008 Ingo Busker, Holger Buss |
||
6 | // + Nur für den privaten Gebrauch |
||
7 | // + FOR NON COMMERCIAL USE ONLY |
||
8 | // + www.MikroKopter.com |
||
9 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
10 | // + Es gilt für das gesamte Projekt (Hardware, Software, Binärfiles, Sourcecode und Dokumentation), |
||
11 | // + dass eine Nutzung (auch auszugsweise) nur für den privaten (nicht-kommerziellen) Gebrauch zulässig ist. |
||
12 | // + Sollten direkte oder indirekte kommerzielle Absichten verfolgt werden, ist mit uns (info@mikrokopter.de) Kontakt |
||
13 | // + bzgl. der Nutzungsbedingungen aufzunehmen. |
||
14 | // + Eine kommerzielle Nutzung ist z.B.Verkauf von MikroKoptern, Bestückung und Verkauf von Platinen oder Bausätzen, |
||
15 | // + Verkauf von Luftbildaufnahmen, usw. |
||
16 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
17 | // + Werden Teile des Quellcodes (mit oder ohne Modifikation) weiterverwendet oder veröffentlicht, |
||
18 | // + unterliegen sie auch diesen Nutzungsbedingungen und diese Nutzungsbedingungen incl. Copyright müssen dann beiliegen |
||
19 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
20 | // + Sollte die Software (auch auszugesweise) oder sonstige Informationen des MikroKopter-Projekts |
||
21 | // + auf anderen Webseiten oder sonstigen Medien veröffentlicht werden, muss unsere Webseite "http://www.mikrokopter.de" |
||
22 | // + eindeutig als Ursprung verlinkt werden |
||
23 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
24 | // + Keine Gewähr auf Fehlerfreiheit, Vollständigkeit oder Funktion |
||
25 | // + Benutzung auf eigene Gefahr |
||
26 | // + Wir übernehmen keinerlei Haftung für direkte oder indirekte Personen- oder Sachschäden |
||
27 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
28 | // + Die PORTIERUNG der Software (oder Teile davon) auf andere Systeme (ausser der Hardware von www.mikrokopter.de) ist nur |
||
29 | // + mit unserer Zustimmung zulässig |
||
30 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
31 | // + Die Funktion printf_P() unterliegt ihrer eigenen Lizenz und ist hiervon nicht betroffen |
||
32 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
33 | // + Redistributions of source code (with or without modifications) must retain the above copyright notice, |
||
34 | // + this list of conditions and the following disclaimer. |
||
35 | // + * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived |
||
36 | // + from this software without specific prior written permission. |
||
37 | // + * The use of this project (hardware, software, binary files, sources and documentation) is only permitted |
||
38 | // + for non-commercial use (directly or indirectly) |
||
39 | // + Commercial use (for excample: selling of MikroKopters, selling of PCBs, assembly, ...) is only permitted |
||
40 | // + with our written permission |
||
41 | // + * If sources or documentations are redistributet on other webpages, out webpage (http://www.MikroKopter.de) must be |
||
42 | // + clearly linked as origin |
||
43 | // + * PORTING this software (or part of it) to systems (other than hardware from www.mikrokopter.de) is NOT allowed |
||
44 | // |
||
45 | // + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
||
46 | // + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
||
47 | // + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
||
48 | // + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
||
49 | // + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
||
50 | // + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
||
51 | // + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
||
52 | // + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
||
53 | // + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
||
54 | // + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||
55 | // + POSSIBILITY OF SUCH DAMAGE. |
||
56 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
||
57 | #include "main.h" |
||
58 | |||
59 | #define global extern /* to declare external variables and functions */ |
||
60 | |||
61 | extern void USB_Istr(void); |
||
62 | |||
63 | void SWI_Handler (void) __attribute__ ((interrupt ("SWI"))); |
||
64 | void Prefetch_Handler (void) __attribute__ ((interrupt ("ABORT"))); |
||
65 | void Abort_Handler (void) __attribute__ ((interrupt ("ABORT"))); |
||
66 | void Undefined_Handler (void) __attribute__ ((interrupt ("UNDEF"))); |
||
67 | void FIQ_Handler (void) __attribute__ ((interrupt ("FIQ"))); |
||
68 | |||
69 | void Dummy_Handler(void) |
||
70 | { |
||
71 | VIC0->VAR = 0xFF; |
||
72 | VIC1->VAR = 0XFF; |
||
73 | } |
||
74 | |||
75 | void InitInterrupt(void) |
||
76 | { |
||
77 | VIC0->DVAR = (u32)Dummy_Handler; |
||
78 | VIC1->DVAR = (u32)Dummy_Handler; |
||
79 | } |
||
80 | |||
81 | void SWI_Handler (void) |
||
82 | { |
||
83 | } |
||
84 | |||
85 | |||
86 | void Abort_Handler (void) |
||
87 | { |
||
88 | } |
||
89 | |||
90 | void Undefined_Handler (void) |
||
91 | { |
||
92 | } |
||
93 | |||
94 | void FIQ_Handler (void) |
||
95 | { |
||
96 | } |
||
97 | /******************************************************************************* |
||
98 | * Function Name : Prefetch_Handler |
||
99 | * Description : This function handles preftetch abort exception. |
||
100 | *******************************************************************************/ |
||
101 | void Prefetch_Handler(void) |
||
102 | { |
||
103 | } |
||
104 | /******************************************************************************* |
||
105 | * Function Name : WDG_IRQHandler |
||
106 | * Description : This function handles the WDG interrupt request |
||
107 | *******************************************************************************/ |
||
108 | void WDG_IRQHandler(void) |
||
109 | { |
||
110 | } |
||
111 | /******************************************************************************* |
||
112 | * Function Name : SW_IRQHandler |
||
113 | * Description : This function handles the SW interrupt request |
||
114 | *******************************************************************************/ |
||
115 | void SW_IRQHandler(void) |
||
116 | { |
||
117 | } |
||
118 | /******************************************************************************* |
||
119 | * Function Name : ARMRX_IRQHandler |
||
120 | * Description : This function handles the ARMRX interrupt request |
||
121 | *******************************************************************************/ |
||
122 | void ARMRX_IRQHandler(void) |
||
123 | { |
||
124 | } |
||
125 | /******************************************************************************* |
||
126 | * Function Name : ARMTX_IRQHandler |
||
127 | * Description : This function handles the ARMTX interrupt request |
||
128 | *******************************************************************************/ |
||
129 | void ARMTX_IRQHandler(void) |
||
130 | { |
||
131 | } |
||
132 | /******************************************************************************* |
||
133 | * Function Name : TIM0_IRQHandler |
||
134 | * Description : This function handles the TIM0 interrupt request |
||
135 | *******************************************************************************/ |
||
136 | void TIM0_IRQHandler(void) |
||
137 | { |
||
138 | } |
||
139 | /******************************************************************************* |
||
140 | * Function Name : TIM1_IRQHandler |
||
141 | * Description : This function handles the TIM1 interrupt request |
||
142 | *******************************************************************************/ |
||
143 | //void TIM1_IRQHandler(void) |
||
144 | //{ |
||
145 | //} |
||
146 | /******************************************************************************* |
||
147 | * Function Name : TIM2_IRQHandler |
||
148 | * Description : This function handles the TIM2 interrupt request |
||
149 | *******************************************************************************/ |
||
150 | void TIM2_IRQHandler(void) |
||
151 | { |
||
152 | } |
||
153 | /******************************************************************************* |
||
154 | * Function Name : TIM3_IRQHandler |
||
155 | * Description : This function handles the TIM3 interrupt request |
||
156 | *******************************************************************************/ |
||
157 | void TIM3_IRQHandler(void) |
||
158 | { |
||
159 | } |
||
160 | /******************************************************************************* |
||
161 | * Function Name : USBHP_IRQHandler |
||
162 | * Description : This function handles the USBHP interrupt request |
||
163 | *******************************************************************************/ |
||
164 | void USBHP_IRQHandler(void) |
||
165 | { |
||
166 | CTR_HP(); |
||
167 | } |
||
168 | /******************************************************************************* |
||
169 | * Function Name : USBLP_IRQHandler |
||
170 | * Description : This function handles the USBLP interrupt request |
||
171 | *******************************************************************************/ |
||
172 | void USBLP_IRQHandler(void) |
||
173 | { |
||
174 | USB_Istr(); |
||
175 | } |
||
176 | /******************************************************************************* |
||
177 | * Function Name : SCU_IRQHandler |
||
178 | * Description : This function handles the SCU interrupt request |
||
179 | *******************************************************************************/ |
||
180 | void SCU_IRQHandler(void) |
||
181 | { |
||
182 | } |
||
183 | /******************************************************************************* |
||
184 | * Function Name : ENET_IRQHandler |
||
185 | * Description : This function handles the DENET interrupt request |
||
186 | *******************************************************************************/ |
||
187 | void ENET_IRQHandler(void) |
||
188 | { |
||
189 | } |
||
190 | /******************************************************************************* |
||
191 | * Function Name : DMA_IRQHandler |
||
192 | * Description : This function handles the DMA interrupt request |
||
193 | *******************************************************************************/ |
||
194 | void DMA_IRQHandler(void) |
||
195 | { |
||
196 | } |
||
197 | /******************************************************************************* |
||
198 | * Function Name : CAN_IRQHandler |
||
199 | * Description : This function handles the CAN interrupt request |
||
200 | *******************************************************************************/ |
||
201 | void CAN_IRQHandler(void) |
||
202 | { |
||
203 | } |
||
204 | /******************************************************************************* |
||
205 | * Function Name : MC_IRQHandler |
||
206 | * Description : This function handles the MC interrupt request |
||
207 | *******************************************************************************/ |
||
208 | void MC_IRQHandler(void) |
||
209 | { |
||
210 | } |
||
211 | /******************************************************************************* |
||
212 | * Function Name : ADC_IRQHandler |
||
213 | * Description : This function handles the ADC interrupt request |
||
214 | *******************************************************************************/ |
||
215 | void ADC_IRQHandler(void) |
||
216 | { |
||
217 | } |
||
218 | /******************************************************************************* |
||
219 | * Function Name : UART0_IRQHandler |
||
220 | * Description : This function handles the UART0 interrupt request |
||
221 | *******************************************************************************/ |
||
222 | /*void UART0_IRQHandler(void) |
||
223 | { |
||
224 | } */ |
||
225 | /******************************************************************************* |
||
226 | * Function Name : UART1_IRQHandler |
||
227 | * Description : This function handles the UART1 interrupt request |
||
228 | *******************************************************************************/ |
||
229 | //void UART1_IRQHandler(void) __attribute__ ((interrupt ("IRQ"))); |
||
230 | /*void UART1_IRQHandler(void) |
||
231 | { |
||
232 | UART1->DR = UART1->DR; |
||
233 | |||
234 | UART_ClearITPendingBit(UART1, UART_IT_Receive); |
||
235 | |||
236 | } |
||
237 | */ |
||
238 | /******************************************************************************* |
||
239 | * Function Name : UART2_IRQHandler |
||
240 | * Description : This function handles the UART2 interrupt request |
||
241 | *******************************************************************************/ |
||
242 | void UART2_IRQHandler(void) |
||
243 | { |
||
244 | } |
||
245 | /******************************************************************************* |
||
246 | * Function Name : I2C0_IRQHandler |
||
247 | * Description : This function handles the I2C0 interrupt request |
||
248 | *******************************************************************************/ |
||
249 | void I2C0_IRQHandler(void) |
||
250 | { |
||
251 | } |
||
252 | /******************************************************************************* |
||
253 | * Function Name : I2C1_IRQHandler |
||
254 | * Description : This function handles the I2C1 interrupt request |
||
255 | *******************************************************************************/ |
||
256 | /*void I2C1_IRQHandler(void) |
||
257 | { |
||
258 | } */ |
||
259 | /******************************************************************************* |
||
260 | * Function Name : SSP0_IRQHandler |
||
261 | * Description : This function handles the SSP0 interrupt request |
||
262 | *******************************************************************************/ |
||
263 | /*void SSP0_IRQHandler(void) |
||
264 | { |
||
265 | } */ |
||
266 | /******************************************************************************* |
||
267 | * Function Name : SSP1_IRQHandler |
||
268 | * Description : This function handles the SSP1 interrupt request |
||
269 | *******************************************************************************/ |
||
270 | void SSP1_IRQHandler(void) |
||
271 | { |
||
272 | } |
||
273 | /******************************************************************************* |
||
274 | * Function Name : LVD_IRQHandler |
||
275 | * Description : This function handles the LVD interrupt request |
||
276 | *******************************************************************************/ |
||
277 | void LVD_IRQHandler(void) |
||
278 | { |
||
279 | } |
||
280 | /******************************************************************************* |
||
281 | * Function Name : RTC_IRQHandler |
||
282 | * Description : This function handles the RTC interrupt request |
||
283 | *******************************************************************************/ |
||
284 | void RTC_IRQHandler(void) |
||
285 | { |
||
286 | } |
||
287 | /******************************************************************************* |
||
288 | * Function Name : WIU_IRQHandler |
||
289 | * Description : This function handles the WIU interrupt request |
||
290 | *******************************************************************************/ |
||
291 | void WIU_IRQHandler(void) |
||
292 | { |
||
293 | } |
||
294 | /******************************************************************************* |
||
295 | * Function Name : EXTIT0_IRQHandler |
||
296 | * Description : This function handles the EXTIT0 interrupt request |
||
297 | *******************************************************************************/ |
||
298 | void EXTIT0_IRQHandler(void) |
||
299 | { |
||
300 | } |
||
301 | /******************************************************************************* |
||
302 | * Function Name : EXTIT1_IRQHandler |
||
303 | * Description : This function handles the EXTIT1 interrupt request |
||
304 | *******************************************************************************/ |
||
305 | void EXTIT1_IRQHandler(void) |
||
306 | { |
||
307 | } |
||
308 | /******************************************************************************* |
||
309 | * Function Name : EXTIT2_IRQHandler |
||
310 | * Description : This function handles the EXTIT2 interrupt request |
||
311 | *******************************************************************************/ |
||
312 | void EXTIT2_IRQHandler(void) |
||
313 | { |
||
314 | } |
||
315 | /******************************************************************************* |
||
316 | * Function Name : EXTIT3_IRQHandler |
||
317 | * Description : This function handles the EXTIT3 interrupt request |
||
318 | *******************************************************************************/ |
||
319 | void EXTIT3_IRQHandler(void) |
||
320 | { |
||
321 | } |
||
322 | /******************************************************************************* |
||
323 | * Function Name : USBWU_IRQHandler |
||
324 | * Description : This function handles the USBWU interrupt request |
||
325 | *******************************************************************************/ |
||
326 | void USBWU_IRQHandler(void) |
||
327 | { |
||
328 | } |
||
329 | /******************************************************************************* |
||
330 | * Function Name : PFQBC_IRQHandler |
||
331 | * Description : This function handles the PFQBC interrupt request |
||
332 | *******************************************************************************/ |
||
333 | void PFQBC_IRQHandler(void) |
||
334 | { |
||
335 | } |
||
336 |