1 |
577 |
jeremybenn |
/******************** (C) COPYRIGHT 2006 STMicroelectronics ********************
|
2 |
|
|
* File Name : 91x_it.c
|
3 |
|
|
* Author : MCD Application Team
|
4 |
|
|
* Date First Issued : 03/31/2006 : Beta Version V0.1
|
5 |
|
|
* Description : Main Interrupt Service Routines.
|
6 |
|
|
********************************************************************************
|
7 |
|
|
* This file can be used to describe all the exceptions subroutines
|
8 |
|
|
* that may occur within user application.
|
9 |
|
|
* When an interrupt happens, the software will branch automatically
|
10 |
|
|
* to the corresponding routine according to the interrupt vector
|
11 |
|
|
* loaded in the PC register.
|
12 |
|
|
* The following routines are all empty, user can write code for
|
13 |
|
|
* exceptions handlers and peripherals IRQ interrupts.
|
14 |
|
|
********************************************************************************
|
15 |
|
|
* History:
|
16 |
|
|
* 03/31/2006 : Beta Version V0.1
|
17 |
|
|
********************************************************************************
|
18 |
|
|
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH
|
19 |
|
|
* CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS
|
20 |
|
|
* A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
|
21 |
|
|
* OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
|
22 |
|
|
* OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
|
23 |
|
|
* CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
24 |
|
|
*******************************************************************************/
|
25 |
|
|
#include "FreeRTOSConfig.h"
|
26 |
|
|
#include "91x_it.h"
|
27 |
|
|
|
28 |
|
|
/*******************************************************************************
|
29 |
|
|
* Function Name : Undefined_Handler
|
30 |
|
|
* Description : This function Undefined instruction exception.
|
31 |
|
|
* Input : None
|
32 |
|
|
* Output : None
|
33 |
|
|
* Return : None
|
34 |
|
|
*******************************************************************************/
|
35 |
|
|
void Undefined_Handler(void)
|
36 |
|
|
{
|
37 |
|
|
// NOT USED.
|
38 |
|
|
}
|
39 |
|
|
/*******************************************************************************
|
40 |
|
|
* Function Name : SWI_Handler
|
41 |
|
|
* Description : This function handles SW exception.
|
42 |
|
|
* Input : None
|
43 |
|
|
* Output : None
|
44 |
|
|
* Return : None
|
45 |
|
|
*******************************************************************************/
|
46 |
|
|
void SWI_Handler(void)
|
47 |
|
|
{
|
48 |
|
|
// NOT USED.
|
49 |
|
|
}
|
50 |
|
|
/*******************************************************************************
|
51 |
|
|
* Function Name : Prefetch_Handler
|
52 |
|
|
* Description : This function handles preftetch abort exception.
|
53 |
|
|
* Input : None
|
54 |
|
|
* Output : None
|
55 |
|
|
* Return : None
|
56 |
|
|
*******************************************************************************/
|
57 |
|
|
void Prefetch_Handler(void)
|
58 |
|
|
{
|
59 |
|
|
// NOT USED.
|
60 |
|
|
}
|
61 |
|
|
/*******************************************************************************
|
62 |
|
|
* Function Name : Abort_Handler
|
63 |
|
|
* Description : This function handles data abort exception.
|
64 |
|
|
* Input : None
|
65 |
|
|
* Output : None
|
66 |
|
|
* Return : None
|
67 |
|
|
*******************************************************************************/
|
68 |
|
|
void Abort_Handler(void)
|
69 |
|
|
{
|
70 |
|
|
// NOT USED.
|
71 |
|
|
}
|
72 |
|
|
/*******************************************************************************
|
73 |
|
|
* Function Name : FIQ_Handler
|
74 |
|
|
* Description : This function handles FIQ exception.
|
75 |
|
|
* Input : None
|
76 |
|
|
* Output : None
|
77 |
|
|
* Return : None
|
78 |
|
|
*******************************************************************************/
|
79 |
|
|
void FIQ_Handler(void)
|
80 |
|
|
{
|
81 |
|
|
// NOT USED.
|
82 |
|
|
}
|
83 |
|
|
/*******************************************************************************
|
84 |
|
|
* Function Name : SW_IRQHandler
|
85 |
|
|
* Description : This function handles the SW interrupt request
|
86 |
|
|
* Input : None
|
87 |
|
|
* Output : None
|
88 |
|
|
* Return : None
|
89 |
|
|
*******************************************************************************/
|
90 |
|
|
void SW_IRQHandler(void)
|
91 |
|
|
{
|
92 |
|
|
}
|
93 |
|
|
/*******************************************************************************
|
94 |
|
|
* Function Name : ARMRX_IRQHandler
|
95 |
|
|
* Description : This function handles the ARMRX interrupt request
|
96 |
|
|
* Input : None
|
97 |
|
|
* Output : None
|
98 |
|
|
* Return : None
|
99 |
|
|
*******************************************************************************/
|
100 |
|
|
void ARMRX_IRQHandler(void)
|
101 |
|
|
{
|
102 |
|
|
}
|
103 |
|
|
/*******************************************************************************
|
104 |
|
|
* Function Name : ARMTX_IRQHandler
|
105 |
|
|
* Description : This function handles the ARMTX interrupt request
|
106 |
|
|
* Input : None
|
107 |
|
|
* Output : None
|
108 |
|
|
* Return : None
|
109 |
|
|
*******************************************************************************/
|
110 |
|
|
void ARMTX_IRQHandler(void)
|
111 |
|
|
{
|
112 |
|
|
}
|
113 |
|
|
/*******************************************************************************
|
114 |
|
|
* Function Name : TIM0_IRQHandler
|
115 |
|
|
* Description : This function handles the TIM0 interrupt request
|
116 |
|
|
* Input : None
|
117 |
|
|
* Output : None
|
118 |
|
|
* Return : None
|
119 |
|
|
*******************************************************************************/
|
120 |
|
|
void TIM0_IRQHandler(void)
|
121 |
|
|
{
|
122 |
|
|
}
|
123 |
|
|
/*******************************************************************************
|
124 |
|
|
* Function Name : TIM1_IRQHandler
|
125 |
|
|
* Description : This function handles the TIM1 interrupt request
|
126 |
|
|
* Input : None
|
127 |
|
|
* Output : None
|
128 |
|
|
* Return : None
|
129 |
|
|
*******************************************************************************/
|
130 |
|
|
void TIM1_IRQHandler(void)
|
131 |
|
|
{
|
132 |
|
|
}
|
133 |
|
|
/*******************************************************************************
|
134 |
|
|
* Function Name : TIM2_IRQHandler
|
135 |
|
|
* Description : This function handles the TIM2 interrupt request
|
136 |
|
|
* Input : None
|
137 |
|
|
* Output : None
|
138 |
|
|
* Return : None
|
139 |
|
|
*******************************************************************************/
|
140 |
|
|
//void TIM2_IRQHandler(void)
|
141 |
|
|
//{
|
142 |
|
|
//}
|
143 |
|
|
/*******************************************************************************
|
144 |
|
|
* Function Name : TIM3_IRQHandler
|
145 |
|
|
* Description : This function handles the TIM3 interrupt request
|
146 |
|
|
* Input : None
|
147 |
|
|
* Output : None
|
148 |
|
|
* Return : None
|
149 |
|
|
*******************************************************************************/
|
150 |
|
|
void TIM3_IRQHandler(void)
|
151 |
|
|
{
|
152 |
|
|
}
|
153 |
|
|
/*******************************************************************************
|
154 |
|
|
* Function Name : USBHP_IRQHandler
|
155 |
|
|
* Description : This function handles the USBHP interrupt request
|
156 |
|
|
* Input : None
|
157 |
|
|
* Output : None
|
158 |
|
|
* Return : None
|
159 |
|
|
*******************************************************************************/
|
160 |
|
|
void USBHP_IRQHandler(void)
|
161 |
|
|
{
|
162 |
|
|
}
|
163 |
|
|
/*******************************************************************************
|
164 |
|
|
* Function Name : USBLP_IRQHandler
|
165 |
|
|
* Description : This function handles the USBLP interrupt request
|
166 |
|
|
* Input : None
|
167 |
|
|
* Output : None
|
168 |
|
|
* Return : None
|
169 |
|
|
*******************************************************************************/
|
170 |
|
|
void USBLP_IRQHandler(void)
|
171 |
|
|
{
|
172 |
|
|
}
|
173 |
|
|
/*******************************************************************************
|
174 |
|
|
* Function Name : SCU_IRQHandler
|
175 |
|
|
* Description : This function handles the SCU interrupt request
|
176 |
|
|
* Input : None
|
177 |
|
|
* Output : None
|
178 |
|
|
* Return : None
|
179 |
|
|
*******************************************************************************/
|
180 |
|
|
void SCU_IRQHandler(void)
|
181 |
|
|
{
|
182 |
|
|
}
|
183 |
|
|
/*******************************************************************************
|
184 |
|
|
* Function Name : DMA_IRQHandler
|
185 |
|
|
* Description : This function handles the DMA interrupt request
|
186 |
|
|
* Input : None
|
187 |
|
|
* Output : None
|
188 |
|
|
* Return : None
|
189 |
|
|
*******************************************************************************/
|
190 |
|
|
void DMA_IRQHandler(void)
|
191 |
|
|
{
|
192 |
|
|
}
|
193 |
|
|
|
194 |
|
|
/*******************************************************************************
|
195 |
|
|
* Function Name : CAN_IRQHandler
|
196 |
|
|
* Description : This function handles the CAN interrupt request
|
197 |
|
|
* Input : None
|
198 |
|
|
* Output : None
|
199 |
|
|
* Return : None
|
200 |
|
|
*******************************************************************************/
|
201 |
|
|
void CAN_IRQHandler(void)
|
202 |
|
|
{
|
203 |
|
|
}
|
204 |
|
|
/*******************************************************************************
|
205 |
|
|
* Function Name : MC_IRQHandler
|
206 |
|
|
* Description : This function handles the MC interrupt request
|
207 |
|
|
* Input : None
|
208 |
|
|
* Output : None
|
209 |
|
|
* Return : None
|
210 |
|
|
*******************************************************************************/
|
211 |
|
|
void MC_IRQHandler(void)
|
212 |
|
|
{
|
213 |
|
|
}
|
214 |
|
|
/*******************************************************************************
|
215 |
|
|
* Function Name : ADC_IRQHandler
|
216 |
|
|
* Description : This function handles the ADC interrupt request
|
217 |
|
|
* Input : None
|
218 |
|
|
* Output : None
|
219 |
|
|
* Return : None
|
220 |
|
|
*******************************************************************************/
|
221 |
|
|
void ADC_IRQHandler(void)
|
222 |
|
|
{
|
223 |
|
|
}
|
224 |
|
|
/*******************************************************************************
|
225 |
|
|
* Function Name : UART0_IRQHandler
|
226 |
|
|
* Description : This function handles the UART0 interrupt request
|
227 |
|
|
* Input : None
|
228 |
|
|
* Output : None
|
229 |
|
|
* Return : None
|
230 |
|
|
*******************************************************************************/
|
231 |
|
|
void UART0_IRQHandler(void)
|
232 |
|
|
{
|
233 |
|
|
}
|
234 |
|
|
/*******************************************************************************
|
235 |
|
|
* Function Name : UART2_IRQHandler
|
236 |
|
|
* Description : This function handles the UART2 interrupt request
|
237 |
|
|
* Input : None
|
238 |
|
|
* Output : None
|
239 |
|
|
* Return : None
|
240 |
|
|
*******************************************************************************/
|
241 |
|
|
void UART2_IRQHandler(void)
|
242 |
|
|
{
|
243 |
|
|
}
|
244 |
|
|
/*******************************************************************************
|
245 |
|
|
* Function Name : I2C0_IRQHandler
|
246 |
|
|
* Description : This function handles the I2C0 interrupt request
|
247 |
|
|
* Input : None
|
248 |
|
|
* Output : None
|
249 |
|
|
* Return : None
|
250 |
|
|
*******************************************************************************/
|
251 |
|
|
void I2C0_IRQHandler(void)
|
252 |
|
|
{
|
253 |
|
|
}
|
254 |
|
|
/*******************************************************************************
|
255 |
|
|
* Function Name : I2C1_IRQHandler
|
256 |
|
|
* Description : This function handles the I2C1 interrupt request
|
257 |
|
|
* Input : None
|
258 |
|
|
* Output : None
|
259 |
|
|
* Return : None
|
260 |
|
|
*******************************************************************************/
|
261 |
|
|
void I2C1_IRQHandler(void)
|
262 |
|
|
{
|
263 |
|
|
}
|
264 |
|
|
/*******************************************************************************
|
265 |
|
|
* Function Name : SSP0_IRQHandler
|
266 |
|
|
* Description : This function handles the SSP0 interrupt request
|
267 |
|
|
* Input : None
|
268 |
|
|
* Output : None
|
269 |
|
|
* Return : None
|
270 |
|
|
*******************************************************************************/
|
271 |
|
|
void SSP0_IRQHandler(void)
|
272 |
|
|
{
|
273 |
|
|
}
|
274 |
|
|
/*******************************************************************************
|
275 |
|
|
* Function Name : SSP1_IRQHandler
|
276 |
|
|
* Description : This function handles the SSP1 interrupt request
|
277 |
|
|
* Input : None
|
278 |
|
|
* Output : None
|
279 |
|
|
* Return : None
|
280 |
|
|
*******************************************************************************/
|
281 |
|
|
void SSP1_IRQHandler(void)
|
282 |
|
|
{
|
283 |
|
|
}
|
284 |
|
|
/*******************************************************************************
|
285 |
|
|
* Function Name : LVD_IRQHandler
|
286 |
|
|
* Description : This function handles the LVD interrupt request
|
287 |
|
|
* Input : None
|
288 |
|
|
* Output : None
|
289 |
|
|
* Return : None
|
290 |
|
|
*******************************************************************************/
|
291 |
|
|
void LVD_IRQHandler(void)
|
292 |
|
|
{
|
293 |
|
|
}
|
294 |
|
|
/*******************************************************************************
|
295 |
|
|
* Function Name : RTC_IRQHandler
|
296 |
|
|
* Description : This function handles the RTC interrupt request
|
297 |
|
|
* Input : None
|
298 |
|
|
* Output : None
|
299 |
|
|
* Return : None
|
300 |
|
|
*******************************************************************************/
|
301 |
|
|
void RTC_IRQHandler(void)
|
302 |
|
|
{
|
303 |
|
|
}
|
304 |
|
|
/*******************************************************************************
|
305 |
|
|
* Function Name : WIU_IRQHandler
|
306 |
|
|
* Description : This function handles the WIU interrupt request
|
307 |
|
|
* Input : None
|
308 |
|
|
* Output : None
|
309 |
|
|
* Return : None
|
310 |
|
|
*******************************************************************************/
|
311 |
|
|
void WIU_IRQHandler(void)
|
312 |
|
|
{
|
313 |
|
|
}
|
314 |
|
|
/*******************************************************************************
|
315 |
|
|
* Function Name : EXTIT0_IRQHandler
|
316 |
|
|
* Description : This function handles the EXTIT0 interrupt request
|
317 |
|
|
* Input : None
|
318 |
|
|
* Output : None
|
319 |
|
|
* Return : None
|
320 |
|
|
*******************************************************************************/
|
321 |
|
|
void EXTIT0_IRQHandler(void)
|
322 |
|
|
{
|
323 |
|
|
}
|
324 |
|
|
/*******************************************************************************
|
325 |
|
|
* Function Name : EXTIT1_IRQHandler
|
326 |
|
|
* Description : This function handles the EXTIT1 interrupt request
|
327 |
|
|
* Input : None
|
328 |
|
|
* Output : None
|
329 |
|
|
* Return : None
|
330 |
|
|
*******************************************************************************/
|
331 |
|
|
void EXTIT1_IRQHandler(void)
|
332 |
|
|
{
|
333 |
|
|
}
|
334 |
|
|
/*******************************************************************************
|
335 |
|
|
* Function Name : EXTIT2_IRQHandler
|
336 |
|
|
* Description : This function handles the EXTIT2 interrupt request
|
337 |
|
|
* Input : None
|
338 |
|
|
* Output : None
|
339 |
|
|
* Return : None
|
340 |
|
|
*******************************************************************************/
|
341 |
|
|
void EXTIT2_IRQHandler(void)
|
342 |
|
|
{
|
343 |
|
|
}
|
344 |
|
|
/*******************************************************************************
|
345 |
|
|
* Function Name : EXTIT3_IRQHandler
|
346 |
|
|
* Description : This function handles the EXTIT3 interrupt request
|
347 |
|
|
* Input : None
|
348 |
|
|
* Output : None
|
349 |
|
|
* Return : None
|
350 |
|
|
*******************************************************************************/
|
351 |
|
|
void EXTIT3_IRQHandler(void)
|
352 |
|
|
{
|
353 |
|
|
}
|
354 |
|
|
/*******************************************************************************
|
355 |
|
|
* Function Name : USBWU_IRQHandler
|
356 |
|
|
* Description : This function handles the USBWU interrupt request
|
357 |
|
|
* Input : None
|
358 |
|
|
* Output : None
|
359 |
|
|
* Return : None
|
360 |
|
|
*******************************************************************************/
|
361 |
|
|
void USBWU_IRQHandler(void)
|
362 |
|
|
{
|
363 |
|
|
}
|
364 |
|
|
/*******************************************************************************
|
365 |
|
|
* Function Name : PFQBC_IRQHandler
|
366 |
|
|
* Description : This function handles the PFQBC interrupt request
|
367 |
|
|
* Input : None
|
368 |
|
|
* Output : None
|
369 |
|
|
* Return : None
|
370 |
|
|
*******************************************************************************/
|
371 |
|
|
void PFQBC_IRQHandler(void)
|
372 |
|
|
{
|
373 |
|
|
}
|
374 |
|
|
|
375 |
|
|
#if configUSE_WATCHDOG_TICK == 0
|
376 |
|
|
/* The kernel is not using the watchdog interrupt so it can be defined here. */
|
377 |
|
|
void WDG_IRQHandler( void )
|
378 |
|
|
{
|
379 |
|
|
}
|
380 |
|
|
#else
|
381 |
|
|
/* The kernel is not using the timer 2 interrupt so it can be defined here. */
|
382 |
|
|
void TIM2_IRQHandler( void )
|
383 |
|
|
{
|
384 |
|
|
}
|
385 |
|
|
#endif /* configUSE_WATCHDOG_TICK */
|
386 |
|
|
|
387 |
|
|
/******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/
|