Versions Compared

Key

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

...

  1. Do not call OSTaskSemPend() from an ISR.

Example Usage

Code Block
titleOSTaskSemPend() example usage
          void CommTask(void *p_arg)
          {
              OS_ERR      err;
              OS_SEM_CTR  ctr;
              CPU_TS      ts;
           
           
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  ctr = OSTaskSemPend(100,
                                      OS_OPT_PEND_BLOCKING,
                                      &ts,
                                      &err);
                  /* Check "err" */
                  :
                  :
              }
          }

...