Nios® V Processor Software Developer Handbook

ID 743810
Date 9/26/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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