Registers a top-level interrupt handler for the processor.
The argument provided in this call as the DataPtr is used as the argument for the handler when it is called.
Prototype
void riscv_register_handler(XInterruptHandler Handler, void *DataPtr);
Parameters
The following table lists the riscv_register_handler function arguments.
| Name | Description |
|---|---|
| Handler | Top level handler. |
| DataPtr | a reference to data that is passed to the handler when it gets called. |