OS_GetCpsrIrq


C Specification

#include <nitro/os.h>

OSIntrMode OS_GetCpsrIrq( void );

Description

This function obtains the current IRQ interrupt status.

Return values are in OSIntrMode_Irq format. If OS_INTRMODE_IRQ_ENABLE is returned, then IRQ interrupts are permitted; if OS_INTRMODE_IRQ_DISABLE is returned, then IRQ interrupts are prohibited.

Internal Operation

Reads the control bit of the IRQ interrupt from CPSR (current program status register).

Arguments

None.

Return Values

Returns the current interrupt status with the following OSIntrMode_Irq enum values:
 

OS_INTRMODE_IRQ_DISABLE IRQ disabled (prohibited)
OS_INTRMODE_IRQ_ENABLE IRQ enabled (permitted)

See Also

OS_EnableInterrupts, OS_DisableInterrupts

Revision History

01/14/2004 Changed name from OS_GetInterrupts
12/01/2004 Initial Version