OS_EnableInterrupts_IrqAndFiq

Syntax

#include <nitro/os.h>

OSIntrMode OS_EnableInterrupts_IrqAndFiq( void );

Arguments

None.

Return Values

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

The return value type is OSIntrMode (a u32 typedef), but the return value is the logical sum of the OSIntrMode_Irq and OSIntrMode_Fiq enumerated types.

The OSIntrMode_Irq enumerated type:

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


The OSIntrMode_Fiq enumerated type:

Value Previous state
OS_INTRMODE_FIQ_DISABLE FIQ Disable (prohibited)
OS_INTRMODE_FIQ_ENABLE FIQ Enable (permitted)

Description

This function enables the IRQ and FIQ 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

The CPSR register (current program status register) IRQ and FIQ interrupt control bits are reset (the reset is enabled).

See Also

OS_DisableInterrupts_IrqAndFiq
OS_RestoreInterrupts_IrqAndFiq
OS_EnableInterrupts

Revision History

2005/03/08 Standardized the Japanese word for "interrupt."
2004/03/04 Moved from OS_EnableInterrupts.


CONFIDENTIAL