Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OSIntEnter() notifies µC/OS-III that an ISR is being processed. This allows µC/OS-III to keep track of interrupt nesting. OSIntEnter() is used in conjunction with OSIntExit(). This function is generally called at the beginning of ISRs. Note that on some CPU architectures, it must be written in assembly language (shown below in pseudo code):

Code Block
          MyISR:
              Save CPU registers;
              OSIntEnter();               /* Or, OSIntNestingCtr++ */
                  :
              Process ISR;
                  :
              OSIntExit();
              Restore CPU registers;
              Return from interrupt;

Files

os.h/os_core.c

Prototype

Code Block
void  OSIntEnter (void)

Arguments

None

Returned Values

...