# OS_DisableInterrupts

## C Specification

  `#include <nitro/os.h>`
  `OSIntrMode OS_DisableInterrupts( void );`

## Arguments

None.

## Return Values

The state before the function is called. Returns the `OSIntrMode_Irq` enum value:

OS_INTRMODE_IRQ_DISABLE | IRQ Disable (prohibited)
OS_INTRMODE_IRQ_ENABLE | IRQ Enable (permitted)

## Description

IRQ interrupts are not allowed. This disables all interrupt master enables. If IRQs are disabled with this function, no interrupts will occur even if IRQ interrupt causes are individually set to enable.

The return values will be in the status prior to calling this function.

## Internal Operation

Sets (set is disabled) the CPSR (current program status register) IRQ interrupt control bit.

## See Also

`OS_EnableInterrupts, OS_RestoreInterrupts
`

## Revision History

03/08/2005 Standardized the Japanese term for "interrupt."
03/04/2004 Changed so FIQ is not included in processing.
01/14/2004 Changed so FIQ is included in processing.
12/01/2003 Initial version