====== OSA : OS_RI ======
**OS_RI (char)**\\
=== ===
{{osa:ref:attr_call_not_int.png|Not allowed in interrupt}}
Restore value of GIEx previously saved by ##[[en:osa:ref:allservices:OS_DI|OS_DI]]##().
=== Call allowed: ===
Not in interrupt
=== Parameters: ===
{| class = "fpl"
|-
|//''char''//
| saved value of GIEx
|}
=== Returns: ===
nothing
=== Example: ===
void Task (void)
{
char temp;
for (;;) {
/*...*/
temp = OS_DI(); // Disable interrupts and store previous GIEx value
/*...*/
OS_RI(temp); // Restore previously saved value of GIEx
/*...*/
}
}
=== See also ===
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~