Registers a handler for a specific exception. This handler is being called when the processor encounters the specified exception.
Prototype
void Xil_ExceptionRegisterHandler(u32 Exception_id, Xil_ExceptionHandler Handler, void *Data);
Parameters
The following table lists the Xil_ExceptionRegisterHandler
function arguments.
Name | Description |
---|---|
Exception_id | Contains the ID of the exception source and should be in the range of 0 to XIL_EXCEPTION_ID_LAST. See xil_exception.h for further information. |
Handler | Handler for the exception. |
Data | Reference to the data that is passed to the Handler when it gets called. |