Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

15.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.