<< Previous | Next >>

OSFlagCreate

OS_FLAG_GRP * OSFlagCreate( OS_FLAGS flags, INT8U * err );

Description

This function is called to create an event flag group.

Parameters

flags
Contains the initial value to store in the event flag group.

err
Pointer to an error code that will be returned to your application:

  • OS_NO_ERR - The call was successful.

  • OS_ERR_CREATE_ISR - Attempt made to create an Event Flag from an ISR.

  • OS_FLAG_GRP_DEPLETED - There are no more event flag groups

Return value

A pointer to an event flag group or a null pointer if no more groups are available.

Library

OS_FLAG.C (Prior to DC 8:UCOS2.LIB)


Dynamic C Functions << Previous | Next >> rabbit.com