Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

14.1.33. alt_ic_irq_disable()

Prototype

int alt_ic_irq_disable (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_disable() function disables a single interrupt.

The function arguments are as follows:

  • ic_id is the interrupt controller identifier (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 interrupt request (IRQ) number, as defined in system.h, identifying the interrupt to enable.
  • A driver for an external interrupt controller (EIC) must implement this function.

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 external interrupt controller.