Hi
Want to know if there is a way to instruct the compiler to preserve more than the normal registers (R0-R3, R12, LR, PSR, and PC) during an interrupt.
Regards Viktor Bucher
Those registers must only be preserved during an interrupt call and not when called from the main program.
Then write two versions of the function, one for calling from the ISR and one for calling from the main program. That avoids pesky reentrancy issues, too.