1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>OS_RestoreIrq</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">OS_RestoreIrq <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/os.h></CODE><BR> 20 <BR> 21 <CODE>BOOL OS_RestoreIrq( BOOL enable );</CODE></dd> 22</dl><h2>Arguments</h2> 23<TABLE border="1"> 24 <TBODY> 25 <TR> 26 <TD width="72"><B><I>enable</I></B></TD> 27 <TD>IRQ interrupt enable state to be set.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<h2>Return Values</h2> 32<p>The IRQ interrupt enable state before calling this function.</p> 33<H2>Description</H2> 34<P>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 <code>OS_EnableIrq()</code> or <code>OS_DisableIrq()</code>.</P> 35<P>If the <em><strong><code>enable</code></strong></em> argument is set to <CODE>TRUE,</CODE> it is set to enabled, and if it is set to <CODE>FALSE</CODE>, it is set to disabled.</P> 36<P>The returned value is the IRQ interrupt enable state before calling this function.</P> 37<BLOCKQUOTE>(Example)<BR> <code>BOOL preIRQ = OS_DisableIrq();<BR> :<BR>(void)RestoreIrq( preIRQ );</code></BLOCKQUOTE> 38 39<h2>Internal Operation</h2> 40<P>Operates the IO Register's IME (Interrupt Master Enable).</P> 41 42<h2>See Also</h2> 43<p><CODE><A href="OS_GetIrq.html">OS_GetIrq</A>, <A href="OS_EnableIrq.html">OS_EnableIrq</A>, <A href="OS_DisableIrq.html">OS_DisableIrq</A><br></CODE></p> 44 45<H2>Revision History</H2> 46<P> 472005/03/08 Standardized the Japanese term for "interrupt."<br> 2003/12/01 Initial version.</P> 48<hr><p>CONFIDENTIAL</p></body> 49</html> 50