#include <nitro/os.h>OSIntrMode OS_GetCpsrIrq( void );
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.
Reads the control bit of the IRQ interrupt from CPSR (current program status register).
None.
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) |
OS_EnableInterrupts, OS_DisableInterrupts
01/14/2004 Changed name from OS_GetInterrupts
12/01/2004 Initial Version