Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

16.1.1.38. 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 interrupts are globally enabled by checking if mstatus.mie bit is set.

Return

Returns zero if interrupt-enable bit is disabled, and non-zero otherwise.