...
- Do not call
OSTaskSemSet()
from an ISR.
Example Usage
Code Block | ||
---|---|---|
| ||
OS_TCB TaskY; void TaskX (void *p_arg) { OS_ERR err; OS_SEM_CTR ctr; while (DEF_ON) { : : ctr = OSTaskSemSet(&TaskY, 0, &err); /* Check "err" */ : : } } |
...
...
OSTaskSemSet()
from an ISR.Code Block | ||
---|---|---|
| ||
OS_TCB TaskY; void TaskX (void *p_arg) { OS_ERR err; OS_SEM_CTR ctr; while (DEF_ON) { : : ctr = OSTaskSemSet(&TaskY, 0, &err); /* Check "err" */ : : } } |
...