Download Salvo User Manual

Transcript
Example
#define EFLAG1_P OSECBP(2)
…
void TaskC(void)
{
for (;;)
{
/* wait forever for both bits to be set
OS_WaitEFlag(EFLAG1_P, 0x0C, OSALL_BITS,
OSNO_TIMEOUT, TaskC1);
/* clear the upper bit, leave the lower
/* one alone.
OSClrEFlag(EFLAG1_P, 0x08);
*/
*/
*/
…
}
}
Salvo User Manual
Chapter 7 • Reference
279