# OS_EnableInterrupts

## C Specification

  `#include <nitro/os.h>`
  `OSIntrMode OS_EnableInterrupts( 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

This function enables IRQ interrupts. This is the master enable for all interrupts. Even if the IRQ interrupt factor enable is set separately, interrupts will not be generated if IRQ is prohibited with this function.

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

## Internal Operation

Resets (reset is enabled) the CPSR (current program status register) the IRQ interrupt control bit.

## See Also

`OS_DisableInterrupts, 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