riscv_register_handler - riscv_register_handler - 2025.2 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2025-11-20
Version
2025.2 English

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.

Table 1. riscv_register_handler Arguments
Name Description
Handler Top level handler.
DataPtr a reference to data that is passed to the handler when it gets called.

Returns

None.