OS_Csem_Accept (csem)
OS_Csem_Accept_I (csem)
Accept counting semaphore (value of semaphore will be decremented). Before calling this service you should be sure that semaphore is not zeroed.
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_Accept (csem); /*...*/ } }
OS_AcceptCSem