Nios® V Processor Software Developer Handbook

ID 743810
Date 9/26/2022
Public

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

Document Table of Contents

12.1.1.35. alt_ic_irq_enabled()

Prototype

int alt_ic_irq_enabled (alt_u32 ic_id, alt_u32 irq)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

Yes.

Include

<sys/alt_irq.h>

Description

This function determines whether a specified interrupt is enabled.

The function arguments are as follows:

  • ic_id is the interrupt controller ID as defined in system.h, identifying the external interrupt controller in the daisy chain. This argument is ignored if the external interrupt controller interface is not implemented.
  • irq is the IRQ number, as defined in system.h, identifying the interrupt to enable.
  • A driver for an external interrupt controller must implement this function.

Return

Returns zero if the specified interrupt is disabled, and nonzero otherwise.