# OS_RestoreInterrupts

## C Specification

  `#include <nitro/os.h>`
  `OSIntrMode OS_RestoreInterrupts( OSIntrMode state );`

## Arguments

state | Interrupt status set up (`OSIntrMode` itself is a u32 typedef)

## Return Values

The state before the function is called. The `OSIntrMode_Irq` enum values are:

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

## Description

This function sets the interrupt state. It takes the interrupt state given by the argument. The state is given in `OSIntrMode_Irq` list format. This function will primarily be used to restore the previous state as indicated by the return values for `OS_EnableInterrupts()` and `OS_DisableInterrupts()`.

They are most likely useful for returning to the previous status.

## Internal Operation

Sets/resets the CPSR (current program status register) IRQ interrupt control bit.

## See Also

`OS_EnableInterrupts, OS_DisableInterrupts
`

## 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