RISC-V Pseudo-asm Macros and Interrupt Handling APIs - RISC-V Pseudo-asm Macros and Interrupt Handling APIs - 2026.1 English - UG643

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

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

RISC-V BSP includes macros to provide convenient access to various registers in the RISC-V processor.

Some of these macros are very useful within exception handlers for retrieving information about the exception. Also, the interrupt handling functions help manage interrupt handling on RISC-V processor devices.To use these functions, include the header file riscv_interface.h in your source code

Table 1. Quick Function Reference
Type Name Arguments
void riscv_enable_interrupts
  • void
void riscv_disable_interrupts
  • void
void riscv_register_handler
  • XInterruptHandler Handler
  • void * DataPtr