The os_sem_init function initializes the semaphore object identified by the function argument. The argument token_count determines the number of tokens stored in the semaphore initially. The os_sem_init function is in the RL-RTX library. The prototype is defined in rtl.h. Note - You must define the semaphore object of type OS_SEM. You can use the name of the semaphore object to identify it during operation.
|