#include <nitro/os.h>
OSIntrMode OS_GetCpsrIrq( void );
None.
The current interrupt state.
For the OSIntrMode_Irq enumeration type it is:
OS_INTRMODE_IRQ_DISABLE | IRQ Disable (prohibited) |
OS_INTRMODE_IRQ_ENABLE | IRQ Enable (permitted) |
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).
OS_EnableInterrupts, OS_DisableInterrupts
03/08/2005 Standardized Japanese term for "interrupt."
01/14/2004 Changed function name from OS_GetInterrupts.
12/01/2003 Initial version