Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Class List | Directories | File List | File Members | Related Pages

IntcInterrupts.h

00001 
00002 /*
00003   FILE: IntcInterrupts.h
00004  
00005   DESCRIPTION: Contains defines for utilizing the Interrupt Controller in 
00006   the MPC551x. 
00007   There is also the function prototypes for the common interrupt handling 
00008   routines to be used on the MPC55xx (PowerPC Zen core).
00009  
00010  */
00011 
00012 #ifndef _INTCINTERRUPTS_H_
00013 #define _INTCINTERRUPTS_H_
00014 
00015 /*----------------------------------------------------------------------------*/
00016 /* Types                                                                      */
00017 /*----------------------------------------------------------------------------*/
00018 
00020 typedef void(*INTCInterruptFn)(void);
00021 
00022 /*----------------------------------------------------------------------------*/
00023 /* Function declarations                                                      */
00024 /*----------------------------------------------------------------------------*/
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00036 __asm void INTC_InitINTCInterrupts(void);
00037 
00048 void INTC_InstallINTCInterruptHandler(INTCInterruptFn handlerFn, 
00049                                       unsigned short vectorNum,
00050                                       unsigned char psrPriority);
00051 
00052 #pragma section RX ".__exception_handlers_p0"
00053 
00058 __declspec (section ".__exception_handlers_p0") void INTC_INTCInterruptHandler(void);
00059 
00060 #ifdef __cplusplus
00061 }
00062 #endif
00063 
00064 #endif
00065