#define EVENT_INIT 0x0
#define EVENT_MODE EV_PRIO
#define EVENT_WAIT_MASK (0x1|0x2|0x4)
#define EVENT_SIGNAL_MASK (0x2)
RT_EVENT ev_desc;
void foo (void)
{
unsigned long mask_ret;
int err;
"MyEventFlagGroup",
EVENT_INIT,
EVENT_MODE);
EVENT_WAIT_MASK,
&mask_ret,
EV_ANY,
TM_INFINITE);
}
void bar (void)
{
}
void cleanup (void)
{
}