char OS_DI ()
Not in interrupt
None
char |
value of GIEx flags before disabling |
void Task (void) { char temp; for (;;) { /*...*/ temp = OS_DI(); // Disable interrupts and store previous GIEx value /*...*/ OS_RI(temp); // Restore previously saved value of GIEx /*...*/ } }