]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/exceptions.h
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / ColdFire_MCF51CN128_CodeWarrior / Sources / exceptions.h
1 /*\r
2  * File: exceptions.h\r
3  * Purpose: Generic exception handling for ColdFire processors\r
4  *\r
5  * Notes:\r
6  */\r
7 \r
8 #ifndef _MCF_EXCEPTIONS_H\r
9 #define _MCF_EXCEPTIONS_H\r
10 \r
11 #ifdef __cplusplus\r
12 extern "C" {\r
13 #endif\r
14 \r
15 /***********************************************************************/\r
16 /*\r
17  * This is the handler for all exceptions which are not common to all \r
18  * ColdFire Chips.  \r
19  *\r
20  * Called by mcf_exception_handler\r
21  * \r
22  */\r
23 void derivative_interrupt(unsigned long vector);\r
24 \r
25 /***********************************************************************/\r
26 /*\r
27  * This is the exception handler for all  exceptions common to all \r
28  * chips ColdFire.  Most exceptions do nothing, but some of the more \r
29  * important ones are handled to some extent.\r
30  *\r
31  * Called by asm_exception_handler \r
32  */\r
33 void mcf_exception_handler(void *framepointer);\r
34 \r
35 \r
36 /***********************************************************************/\r
37 /*\r
38  * This is the assembly exception handler defined in the vector table.  \r
39  * This function is in assembler so that the frame pointer can be read  \r
40  * from the stack.\r
41  * Note that the way to give the stack frame as argument to the c handler\r
42  * depends on the used ABI (Register, Compact or Standard).\r
43  *\r
44  */\r
45 asm void asm_exception_handler(void);\r
46 \r
47 #ifdef __cplusplus\r
48 }\r
49 #endif\r
50 \r
51 #endif   /* _MCF_EXCEPTIONS_H */\r
52 \r