OS_RestoreIrq

Syntax

#include <nitro/os.h>

BOOL OS_RestoreIrq( BOOL enable );

Arguments

enable IRQ interrupt enable state to be set.

Return Values

The IRQ interrupt enable state before calling this function.

Description

This function sets the IRQ interrupt enable state. In most cases, this is used to return to previous states when the enable state is changed using OS_EnableIrq() or OS_DisableIrq().

If the enable argument is set to TRUE, it is set to enabled, and if it is set to FALSE, it is set to disabled.

The returned value is the IRQ interrupt enable state before calling this function.

(Example)
BOOL preIRQ = OS_DisableIrq();
:
(void)RestoreIrq( preIRQ );

Internal Operation

Operates the IO Register's IME (Interrupt Master Enable).

See Also

OS_GetIrq, OS_EnableIrq, OS_DisableIrq

Revision History

2005/03/08 Standardized the Japanese term for "interrupt."
2003/12/01 Initial version.


CONFIDENTIAL