OS_Csem_Set (csem)
OS_Csem_Set_I (csem)
Set counting semaphore's value to 1.
OS_ENABLE_CSEM constant must be defined in OSAcfg.h. Size of counting semaphores is defined by OS_CSEM_SIZE constant
csem |
Counting semaphore. Variable of OST_CSEM type |
nothing
OST_CSEM csem; void Task (void) { for (;;) { /*...*/ OS_Csem_Set(csem); // Now csem = 1 /*...*/ } }
OS_SetCSem