R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_mtx.h
Go to the documentation of this file.
1 
37 #ifndef INCLUDE_R_RTOS_MTX_H_
38 #define INCLUDE_R_RTOS_MTX_H_
39 
40 #include "R_RTOS_inc.h"
41 
50 RetCode mtx_InitMtxs( void );
51 
72  PTskTCB const tsk,
73  const MtxNr mtxNr,
74  const SysTicks maxSysTicksToWait );
75 
87 RetCode mtx_GiveMtx( PTskTCB const tsk, const MtxNr mtxNr );
88 
98 RetCode mtx_GiveUpOnMtx( PTskTCB const tsk );
99 
100 //DEPRECATED
101 //RetCode mtx_DeleteTskMtxFromQ( PTskTCB const tsk );
102 
107 #endif /* INCLUDE_R_RTOS_MTX_H_ */
uint8_t SysTicks
Amount of SysTicks.
Definition: R_RTOS_inc.h:511
Defines, Typedefs and Macros for the whole system.
uint8_t MtxNr
Number of a Mutex.
Definition: R_RTOS_inc.h:462
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.
Definition: R_RTOS_mtx.c:102
RetCode mtx_InitMtxs(void)
Initialize the mutex functionality.
Definition: R_RTOS_mtx.c:90
RetCode mtx_GiveMtx(PTskTCB const tsk, const MtxNr mtxNr)
Releases the mutex with the given number.
Definition: R_RTOS_mtx.c:157
RetCode mtx_GiveUpOnMtx(PTskTCB const tsk)
Give up on waiting for the mutex blocking the specified task.
Definition: R_RTOS_mtx.c:177
Task Control Block.
Definition: R_RTOS_inc.h:1322
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424