Command disabled: backlink
 
Available Languages?:

OSA : OS_EnterInt

OS_EnterInt ()

Only inside interrupt

For PICC and PICC18 this service must be called in the beginning of an interrupt routine. This service saves the current FSR (FSR0 for PIC18) value.

Call allowed:

Only in interrupt

Parameters:

None

Returns:

nothing

Example:

vid interrupt isr (void)
{
    static char a, b;  // some variables
 
    // After defining all variables wee need to call service:
    OS_EnterInt();
    /*...*/
 
    // Before exit from interrupt we need to call service
    OS_LeaveInt();
}

See also

 
en/osa/ref/allservices/os_enterint.txt · Last modified: 07.10.2010 13:56 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki