OSA : OS_Bsem_Signal

OS_Bsem_Signal (bsem)
OS_Bsem_Signal_I (bsem)

(Same as OS_Bsem_Set)

Signal binary semaphore.

Call allowed:

Everywhere

Parameters:

bsem Binary semaphore's ID. Number of binary semaphores is set by OS_BSEMS constant in OSAcfg.h

Returns:

nothing

Example:

void Task (void)
{
    for (;;) {
        /*...*/
        OS_Bsem_Signal(3);  // Set binary semaphore #3
        /*...*/
    }
}

Old style name

OS_SetBSem

See also