OS_RestoreInterrupts


C Specification

#include <nitro/os.h>

OSIntrMode OS_RestoreInterrupts( OSIntrMode state );

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().

Internal Operation

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

Arguments

state

Interrupt state to set (OSIntrMode is the u32 typedef)

Return Values

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

 

OS_INTRMODE_IRQ_DISABLE

IRQ Disable (prohibit)

OS_INTRMODE_IRQ_ENABLE

IRQ Enable (permit)

See Also

OS_EnableInterrupts, OS_DisableInterrupts

Revision History

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