Nios® V Processor Software Developer Handbook

ID 743810
Date 7/20/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

13.1.1.86. 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

--.