Nios® V Processor Software Developer Handbook

ID 743810
Date 4/01/2024
Public
Document Table of Contents

8.3.3. Registering a Software ISR

Before software can use an ISR, you must register it by calling alt_niosv_register_msw_interrupt_handler(). The prototype for alt_niosv_register_msw_interrupt_handler() is:

void alt_niosv_register_msw_interrupt_handler(alt_niosv_sw_isr_t handle)

The function has the following parameters:

  • handle is a pointer to the software ISR function.
    The ISR function prototype is:
    void (*sw_isr_func) (alt_u32 cause, alt_u32 epc, alt_u32 tval) 
    For more information about alt_niosv_register_msw_interrupt_handler(), refer to the HAL API Reference chapter.