AnsweredAssumed Answered

Make a jump to a function from an interrupt with gcc inline assembly

Question asked by testuo on May 30, 2016
Latest reply on May 30, 2016 by testuo

Hi,

how can i do to jump (with gcc inline assembly on cortex M3/M4) to main after an interrupt. I don't want to use flag in my case.


void
my_interrupt(void)
{
    __asm__ __volatile__ (
         "instruction1 to jump to main"
         "instruction2 to go to main"                      
   )
}
 
int main(void)
{
    my_code();
     ...
     ...
}


Thanks.

Outcomes