* p_err is a pointer to an error code and can be:
*
* OS_ERR_NONE The desired bits have been set within the specified 'timeout'
* OS_ERR_OBJ_PTR_NULL If 'p_grp' is a NULL pointer.
* OS_ERR_OBJ_TYPE You are not pointing to an event flag group
* OS_ERR_OPT_INVALID You didn't specify a proper 'opt' argument.
* OS_ERR_PEND_ABORT The wait on the flag was aborted.
* OS_ERR_PEND_ISR If you tried to PEND from an ISR
* OS_ERR_PEND_WOULD_BLOCK If you specified non-blocking but the flags were not
* available.
* OS_ERR_SCHED_LOCKED If you called this function when the scheduler is locked
* OS_ERR_TIMEOUT The bit(s) have not been set in the specified 'timeout'.