OS_Csem_SetValue (csem, value)
OS_Csem_SetValue_I (csem, value)
Set counting semaphore's value to value.
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 |
value |
Init value of counting semaphore. |
nothing
OST_CSEM csem; void Task (void) { for (;;) { /*...*/ OS_Csem_SetValue (csem, 15); // Now csem = 15 /*...*/ } }
OS_SetCSemValue