R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_mtx.c File Reference
#include "R_RTOS_mtx.h"
#include "R_RTOS_task.h"
#include "R_RTOS_memMngr.h"

Functions

RetCode mtx_InitMtxs (void)
 Initialize the mutex functionality. More...
 
RetCode mtx_TakeMtx (PTskTCB const tsk, const MtxNr mtxNr, const SysTicks maxSysTicksToWait)
 Attempts to take the mutex with the given number for the specified task. More...
 
RetCode mtx_GiveMtx (PTskTCB const tsk, const MtxNr mtxNr)
 Releases the mutex with the given number. More...
 
RetCode mtx_GiveUpOnMtx (PTskTCB const tsk)
 Give up on waiting for the mutex blocking the specified task. More...
 

Variables

static Mtx ar_Mtxs [AMOUNT_OF_MTXS]
 Contains all mutexes.
 
static MemPoolID memPoolID_MTX
 ID of the memory pool memory allocation request of mutexes are served from.
 

Detailed Description