Nios® V Processor Software Developer Handbook

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

15.1.1.82. alt_niosv_register_msw_interrupt_handler()

Prototype

void alt_niosv_register_msw_interrupt_handler(alt_niosv_sw_isr_t handle)

Commonly Called By

C/C++ programs

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/msw_interrupt.h>

Description

The alt_niosv_register_msw_interrupt_handler() function registers a software ISR.

The function argument 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).

Calls to alt_niosv_register_msw_interrupt_handler() replace previously registered handlers for machine software interrupt.

Return

--.