Makes the connection between the Id of the exception source and the associated handler that is to run when the exception is recognized.
The argument provided in this call as the DataPtr is used as the argument for the handler when it is called.
Prototype
void Xil_ExceptionRegisterHandler(u32 Id, Xil_ExceptionHandler Handler, void *Data);
Parameters
The following table lists the Xil_ExceptionRegisterHandler
function arguments.
Name | Description |
---|---|
Id | contains the 32 bit ID of the exception source and should be XIL_EXCEPTION_INT or be in the range of 0 to XIL_EXCEPTION_LAST. See xil_mach_exception.h for further information. |
Handler | handler function to be registered for exception |
Data | a reference to data that will be passed to the handler when it gets called. |