AnsweredAssumed Answered

moving to specific point in code after interrupt

Question asked by zdzisiu wojcik on Apr 19, 2010
Latest reply on Apr 20, 2010 by kef

Hello
I am having trouble with creating edge-triggered interrupt which ll "jump" program to a specific point in my main function. Here is my simplified code and what i want to achive:

main.c  :
function1{}
function2{}

void main(void){
 <=== interrupt occurs while function1 is executing and i want to "jump" in front of it so it could be executed from the begining.
function1{}
}


interrupts.c  :
#pragma CODE_SEG DEFAULT
void Int1(void)
{
function2{}
}

void Int2(void)
{
function2{}
}

Thanks in advance for help

Outcomes