OSA : OS_Flag_Clear

OS_Flag_Clear (flags, mask)
OS_Flag_Clear_I (flags, mask)

flags &= ~mask Clear bits in flags according to mask.

Call allowed:

Everywhere

Parameters:

flags Variable of OST_FLAGx (x = 8, 16, 32) type
mask Bit mask to operate on

Returns:

nothing

Example:

OST_FLAG flag;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Flag_Clear (flag, 0x03);    // Clear bits 0 and 1
        /*...*/
    }
}

Old style name

OS_ClearFlag

OS_Flag_Clear

See also