Versions Compared

Key

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

...

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

Example Usage

Code Block
titleOSTaskSemPendAbort() example usage
          OS_TCB  CommRxTaskTCB;
           
           
          void CommTask (void *p_arg)
          {
              OS_ERR      err;
              CPU_BOOLEAN  aborted;
           
           
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  :
                  aborted = OSTaskSemPendAbort(&CommRxTaskTCB,
                                                OS_OPT_POST_NONE,
                                               &err);
                  /* Check "err" */
                  :
                  :
              }
          }

...