...
- Do not call
OSTaskSemPendAbort()
from an ISR.
Example Usage
Code Block | ||
---|---|---|
| ||
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" */ : : } } |
...