Command disabled: backlink
 
Available Languages?:

OSA : OS_RI

OS_RI (char)

Not allowed in interrupt

Restore value of GIEx previously saved by OS_DI().

Call allowed:

Not in interrupt

Parameters:

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/allservices/os_ri.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki