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.37. alt_ic_irq_enable()

Prototype

int alt_ic_irq_enable (alt_u32 ic_id, alt_u32 irq)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/alt_irq.h>

Description

The alt_ic_irq_enable() function enables a single interrupt.

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.

Return

This function returns zero if successful, or nonzero otherwise. The function fails if the irq parameter is greater than the maximum interrupt port number supported by the interrupt controller.