OS_Csem_Signal_Now (csem)
OS_Csem_Signal_Now_I (csem)
Increase counting semaohore's value by 1. If counting semaphore already has maximum value, then after execution, the service OS_IsEventError will return true.
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 |
OS_IsEventError() returns true if counting semaphore already has maximum value
OST_CSEM csem; void Task (void) { for (;;) { /*...*/ OS_Csem_Signal_Now(csem); /*...*/ } }
OS_SignalCSem