OSVersion

Description

OSVersion() obtains the current version of µC/OS-III.

Files

os.h/os_core.c

Prototype

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:

OS_ERR_NONE

The call succeeded.

Returned Value

The version is returned as x.yy.zz multiplied by 10,000. For example, V3.00.00 is returned as 30000.

Required Configuration

None

Callers

Application and ISRs.

Notes/Warnings

None

Example Usage

OSVersion 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       */
              }
          }