Freescale Semiconductor Inc.
    Regional Technical Application Center

 

E:/PROJECTS/IOP/ADC Average/Src/ADC_Filter/ADC_Filter_Drv/src/Exceptions.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 __declspec (section".__exception_handlers_p0") void EXCEP_DefaultExceptionHandler(void)
__asm void EXCEP_InitExceptionHandlers (void)


Function Documentation

__declspec ( section".__exception_handlers_p0"   ) 

FILE: Exceptions.h

DESCRIPTION: Setup of IVPR to point to the EXCEPTION_HANDLERS memory area defined in the linker command file. This function is used as default exceptions handler

FILE: Exceptions.c

DESCRIPTION: Setup of IVPR to point to the EXCEPTION_HANDLERS memory area defined in the linker command file. Default setup of the IVORxx registers.

__asm void EXCEP_InitExceptionHandlers ( void   ) 

This function will setup the PowerPC Zen core IVPR and IVORxx registers. IVPR will be set to the EXCEPTION_HANDLERS memory area defined in the linker command file (.lcf of the current build target) IVORxx will be set by default to the exception handler function: __DefaultExceptionHandler__.

If an Exception is used in the application code, the exception handler routine should be defined like the EXCEP_DefaultExceptionHandler function (i.e. interrupt function, forced active and placed in the ".__exception_handlers_z1" code section). The corresponding entries in the ivor_branch_table should then be set to branch to this address.