#include <nitro/os.h>
BOOL OS_RestoreIrq( BOOL enable );
enable | IRQ interrupt enable state to be set. |
The IRQ interrupt enable state before calling this function.
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 );
Operates the IO Register's IME (Interrupt Master Enable).
03/08/2005 Standardized the Japanese term for "interrupt"
12/01/2003 Initial version