Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public

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

Document Table of Contents

9.3.4. Enabling and Disabling Interrupts

The HAL software interrupt API provides the functions:

  • alt_niosv_disable_msw_interrupt() and alt_niosv_enable_msw_interrupt() allow you to disable and enable software interrupt.
  • alt_niosv_is_msw_interrupt_enabled() determines whether the software interrupt is enabled.
  • alt_niosv_trigger_msw_interrupt() generates the software interrupt after enabling the software interrupt.
Note: Disable interrupts for as short a time as possible. Maximum interrupt latency increases with the longest amount of time interrupts are disabled. For more information about disabled interrupts, refer to the “Keep Interrupts Enabled” chapter.

For more information about these functions, refer to the "HAL API Reference" chapter.