OS_RestoreIrq


C Specification

#include <nitro/os.h>

BOOL OS_RestoreIrq( BOOL enable );

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 IME (Interrupt Master Enable).

Arguments

enable IRQ interrupt enable state to be set.

Return Value

The IRQ interrupt enable state before calling this function.

See Also

OS_EnableInterrupts

Revision History

12/01/2003 Initial Version