# OS_EnableInterrupts

## C Specification

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

## Description

This function enables IRQ interrupts. This is the master enable for all interrupts. If IRQs are not enabled with this function, no interrupts will occur even if IRQ interrupt causes are individually set to enable.

## Internal Operation

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

## Arguments

None

## Return Values

This is the state before this function is called. With `OSIntrMode` in list format,

`OSIntrMode_Irq`

`OS_INTRMODE_IRQ_DISABLE` | IRQ Disable (prohibit)
`OS_INTRMODE_IRQ_ENABLE` | IRQ Enable (permit)

## See Also

`OS_DisableInterrupts, OS_RestoreInterrupts`

## Revision History

03/04/2004 Removed FIQ from the process
01/14/2004 Included FIQ in the process
12/01/2003 Initial Version