OS_DisableInterrupts


C Specification

#include <nitro/os.h>

OSIntrMode OS_DisableInterrupts( void );

Description

This function disables the IRQ interrupt. This disables all interrupt master enables. If IRQs are disabled with this function, no interrupts will occur even if IRQ interrupt causes are individually set to enable.

Internal Operation

Sets (set is disabled) the CPSR (current program status register) IRQ interrupt control bit.

Arguments

None

Return Values

The state before the function is called. Returns the OSIntrMode enum value:

OSIntrMode_Irq

OS_INTRMODE_IRQ_DISABLE

IRQ Disable (prohibit)

OS_INTRMODE_IRQ_ENABLE

IRQ Enable (permit)

See Also

OS_EnableInterrupts, OS_RestoreInterrupts

Revision History

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