#include <nitro/os.h>BOOL OS_RestoreIrq( BOOL enable );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 IME (Interrupt Master Enable).
enable |
IRQ interrupt enable state to be set. |
The IRQ interrupt enable state before calling this function.
12/01/2003 Initial Version