R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_sem.h File Reference
#include "R_RTOS_inc.h"

Go to the source code of this file.

Macros

#define MEM_OBJECTS_SEM   (uint8_t)0x4u
 Number of objects for the semaphore memory pool. More...
 

Functions

RetCode sem_InitSems (void)
 Initialize the semaphore functionality. More...
 
RetCode sem_initBinSem (const SemNr semNr)
 Initialize the Semaphore corresponding to the given number as a Binary Semaphore. More...
 
RetCode sem_initCntSem (const SemNr semNr, const SemCntr ressourceCntr)
 Initialize the Semaphore corresponding to the given number as a counting Semaphore. More...
 
RetCode sem_wait (const SemNr semNr, PTskTCB const tsk, const SysTicks maxSysTicksToWait)
 Request access to the resource guarded by the Semaphore corresponding to the given number. More...
 
RetCode sem_Tsksignal (const SemNr semNr, PTskTCB const tsk)
 Signal the Semaphore from Task context. See sem_signal. More...
 
RetCode sem_signal (const SemNr semNr)
 Signal the Semaphore to make its resources available again. More...
 
RetCode sem_DeleteTskSemQ (PTskTCB const tsk)
 Delete a SemLst entry from the semaphore queue. More...
 

Detailed Description