Versions Compared

Key

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

...

Files

os.h/os_task.c

Prototype

Code Block
OS_SEM_CTR  OSTaskSemPost (OS_TCB    *p_tcb,
                           OS_OPT     opt,
                           OS_ERR    *p_err)

Arguments

p_tcb

is a pointer to the TCB of the task being signaled. A NULL pointer indicates that the user is sending a signal to itself.

...

Application and ISRs.

Notes/Warnings

...

None.

Example Usage

Code Block
titleOSTaskSemPost()

...

example usage
          OS_TCB       CommRxTaskTCB;
           
           
          void CommTaskRx (void *p_arg)
          {
              OS_ERR      err;
              OS_SEM_CTR  ctr;
           
           
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  ctr = OSTaskSemPost(&CommRxTaskTCB,
                                       OS_OPT_POST_NONE,
                                      &err);
                  /* Check "err" */
                  :
                  :
              }
          }