Versions Compared

Key

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

...

Files

os.h/os_task.c

Prototype

Code Block
OS_REG_ID  OSTaskRegGetID (OS_ERR  *p_err)

Arguments

p_err

is a pointer to a variable that will contain an error code returned by this function.

...

Notes/Warnings

None

Example Usage

Code Block
titleOSTaskRegGetID() example usage
          OS_REG_ID  MyTaskRegID;
           
           
          void main (void)
          {
              OS_ERR  err;
           
              :
              OSInit(&err);
              :
              MyTaskRegID = OSTaskRegGetID(&err);
              /* Check "err" */
              :
              :
              OSStart(&err);
          }