Question
Make a jump to a function from an interrupt with gcc inline assembly
Posted on May 30, 2016 at 21:08
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. 