OS_DisableInterrupts_IrqAndFiq


C Specification

#include <nitro/os.h>

OSIntrMode OS_DisableInterrupts_IrqAndFiq( void );

Description

This function disables IRQ and FIQ interrupts. It prohibits the master enable for all interrupts. Even if the IRQ interrupt factor enable is set separately, interrupts will not be generated if IRQ is prohibited with this function.

Arguments

None

Return Values

Status prior to calling this function. This is the logical sum of OSIntrMode_Irq enumerated and OSIntrMode_Fiq enumerated.

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

OSIntrMode_Fiq
OS_INTRMODE_FIQ_DISABLE FIQ Disable (prohibited)
OS_INTRMODE_FIQ_ENABLE FIQ Enable (permitted)

Internal Operation

The CPSR register (current program status register) IRQ and FIQ interrupt control bit are set (the set is disabled).

See Also

OS_EnableInterrupts_IrqAndFiq, OS_RestoreInterrupts_IrqAndFiq, OS_DisableInterrupts

Revision History

03/04/2004 Transition from OS_DisableInterrupts