]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/ColdFire_MCF52221_CodeWarrior/sources/exceptions.h
Update the demo directory to use the version 8 type naming conventions.
[freertos] / FreeRTOS / Demo / ColdFire_MCF52221_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 /***********************************************************************/\r
48 /* MCF5xxx exceptions table initialization:\r
49  *\r
50  * Set VBR and performs RAM vector table initialization.\r
51  * The following symbol should be defined in the lcf:\r
52  * __VECTOR_RAM\r
53  *\r
54  * _vect is the start of the exception table in the code\r
55  * In case _vect address is different from __VECTOR_RAM,\r
56  * the vector table is copied from _vect to __VECTOR_RAM.\r
57  * In any case VBR is set to __VECTOR_RAM.\r
58  */ \r
59 void initialize_exceptions(void);\r
60 \r
61 \r
62 #ifdef __cplusplus\r
63 }\r
64 #endif\r
65 \r
66 #endif   /* _MCF_EXCEPTIONS_H */\r
67 \r