I want to write a macro which pushes IE onto stack and pops it out soon. How can I do it? How to embed the code 0xc0, 0xa8 PUSH IE and 0xd0, 0xa8 POP IE into c program?
Sigh... Use #pragma disable. For example:
#pragma disable void interrupt_protected_function (void) { }