Versions Compared

Key

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

...

Files

os.h/os_core.c

Prototype

Code Block
CPU_INT16U  OSVersion (OS_ERR  *p_err)

Arguments

p_err

is a pointer to a variable that contains an error code returned by this function. Currently, OSVersion() always returns:

...

Notes/Warnings

None

Example Usage

Code Block
titleOSVersion example usage
          void TaskX (void *p_arg)
          {
              CPU_INT16U  os_version;
              OS_ERR      err;
           
           
              while (DEF_ON) {
                  :
                  :
                  os_version = OSVersion(&err);  /* Obtain µC/OS-III's version       */
              }
          }