OSA : OS_Flag_Init

OS_Flag_Init (flags, value)
OS_Flag_Init_I (flags, value)

flags = value

Set value of flag.

Call allowed:

Everywhere

Parameters:

flags Variable of OST_FLAGx (x = 8, 16, 32) type
value Flag initial value.

Returns:

nothing

Example:

OST_FLAG flag;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Flag_Init (flag, 0x1234);
        /*...*/
    }
}

Old style name

OS_InitFlag
OS_Flag_Check_On

See also