OS_Csem_Create (csem)
Create counting semaphore. After creation semaphore's value is zero.
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) { OS_Csem_Create (csem); // Create semaphore to work with it for (;;) { /*...*/ } }
OS_CreateCSem