#include <nitro/os.h>
OSIntrMode OS_DisableInterrupts_IrqAndFiq( void );
None.
The state before the function is called. This is the logical sum of OSIntrMode_Irq
enum value and OSIntrMode_Fiq
enum value.
OS_INTRMODE_IRQ_DISABLE | IRQ Disable (prohibited) |
OS_INTRMODE_IRQ_ENABLE | IRQ Enable (permitted) |
Returns the OSIntrMode_Fiq
enum value:
OS_INTRMODE_FIQ_DISABLE | FIQ Disable (prohibited) |
OS_INTRMODE_FIQ_ENABLE | FIQ Enable (permitted) |
This function disables IRQ and FIQ interrupts. 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.
They are most likely useful for returning to the previous status.
The CPSR register (current program status register) IRQ and FIQ interrupt control bit are set (the set is disabled).
OS_EnableInterrupts_IrqAndFiq, OS_RestoreInterrupts_IrqAndFiq, OS_DisableInterrupts
03/08/2005 Standardized the Japanese word for "interrupt."
03/04/2004 Transition from OS_DisableInterrupts.