Versions Compared

Key

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

...

void OSIntExit (void);

...

...

File

...

...

Called from

...

Code enabled by

...

os_core.c

...

...

ISR only

...

...

N/A

...

OSIntExit() notifies µC/OS-III that an ISR is complete. This allows µC/OS-III to keep track of interrupt nesting. OSIntExit() is used in conjunction with OSIntEnter(). When the last nested interrupt completes, OSIntExit() determines if a higher priority task is ready-to-run. If so, the interrupt returns to the higher priority task instead of the interrupted task. Anchor10007591000759

This function is typically called at the end of ISRs as follows, and on some CPU architectures, it must be written in assembly language (shown below in pseudo code): Anchor10685091068509  

...

rowspan9

...

)

...

:

...

...

Arguments

Anchor10007881000788None Anchor10007891000789

Returned Value

...

None Anchor10509751050975

Notes/Warnings

...

This function must not be called by task-level code. Also, if you decide to directly increment OSIntNestingCtr, instead of calling OSIntEnter(), you must still call OSIntExit().