OS_Csem_Signal (csem)
Increase counting semaphore's value by 1. If semaphore cannot be increased (already at maximum) then task switches to waiting state until some another task decreases semaphore's value
OS_ENABLE_CSEM constant must be defined in OSAcfg.h. Size of counting semaphores is defined by OS_CSEM_SIZE constant
Not in interrupt
csem |
Counting semaphore. Variable of OST_CSEM type |
nothing
OST_CSEM csem; void Task (void) { for (;;) { /*...*/ OS_Csem_Signal(csem); /*...*/ } }
OS_SignalCSem