OS_EnableInterrupts

Syntax

#include <nitro/os.h>

OSIntrMode OS_EnableInterrupts( void );

Arguments

None.

Return Values

Returns a value that indicates the state before this function was called.

The type of the return value is OSIntrMode (a u32 typedef), but the values that can be returned will be one of the OSIntrMode_Irq enumerated type values below.

Value Previous state
OS_INTRMODE_IRQ_DISABLE IRQ Disable (prohibited)
OS_INTRMODE_IRQ_ENABLE IRQ Enable (permitted)

Description

This function enables IRQ interrupts.

The master enable flag for all interrupts (the Interrupt Master Enable Flag) is enabled here. Even if the IRQ interrupt causes are enabled separately, interrupts will not be generated if IRQ is prohibited with this function.

The return value indicates the state prior to calling the 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

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


CONFIDENTIAL