/* Wait for one or more Signal Flags to become signaled for the current  */
os_InRegs osEvent osSignalWait(int32_t signals, uint32_t millisec)
/* Wait for one or more Signal Flags to become signaled for the current  */
os_InRegs osEvent osSignalWait(int32_t signals, uint32_t millisec)
{
		thread->event_group = xEventGroupCreate();
	}
	EventBits_t bits = xEventGroupWaitBits(
								thread->event_group,
								signals,
								pdTRUE,
								pdTRUE,
								millisec / portTICK_PERIOD_MS);
	if (bits & signals) {
		event.status = osEventSignal;
		event.value.v = bits;
	} else {
		event.status = osEventTimeout;
	}
	return event;
}