Processor Specific Include Files - Processor Specific Include Files - 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

The xpseudo_asm.h includes xreg_riscv.h and xpseudo_asm_gcc.h.

The xreg_riscv.h file contains definitions for inline assembler code. It provides inline definitions for RISC-V GPRs, CSRs, and Debug registers.

The xpseudo_asm_gcc.h contains the definitions for the most often used inline assembler instructions, available as macros. These can be very useful for tasks such as setting or getting special purpose registers, or synchronization. These inline assembler instructions can be used from drivers and user applications written in C.