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