Nios II Classic Software Developer’s Handbook

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

14.1.43. alt_irq_enabled()

Prototype

int alt_irq_enabled (void)

Commonly Called By

Device drivers

Thread-safe

Yes.

Available from ISR

Yes.

Include

<sys/alt_irq.h>

Description

Determines whether maskable exceptions (status.PIE) are enabled.

For more information about using the enhanced HAL interrupt API, refer to “Nios II Interrupt Service Routines” in the "Exception Handling" chapter.

Return

Returns zero if interrupts are disabled, and non-zero otherwise.