====== OSA : OS_LeaveInt ====== **OS_LeaveInt ()**\\ === === {{osa:ref:attr_call_int.png|Only inside interrupt}} For **PICC** and **PICC18** this service must be called at the end of an interrupt routine. This service restores FSR (FSR0 for PIC18) value (stored by ##[[en:osa:ref:allservices:OS_EnterInt|OS_EnterInt]]##). === Call allowed: === Only in interrupt === Parameters: === None === Returns: === nothing === Example: === void interrupt isr (void) { static char a, b; // some variables // After defining all variables we need to call service OS_EnterInt(); /*...*/ // Before exit from interrupt we need to call service OS_LeaveInt(); } === See also === ---- * [[en:osa:ref:services:alphabetical|Alphabetical]] * [[en:osa:ref:services:brieflist|All services]] ~~UP~~