R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_stack.h
Go to the documentation of this file.
1 
13 #ifndef HEADERS_R_RTOS_STACK_H_
14 #define HEADERS_R_RTOS_STACK_H_
15 
16 #include "R_RTOS_inc.h"
17 
29  register PTskTCB tsk,
30  register StackSize desiredStackSize );
31 
43 RetCode stk_StackInit( register PTskTCB tsk, void *fktParam );
44 
54 RetCode stk_StackDestroy( register PTskTCB tsk );
55 
62 RetCode stk_TSTStck( PTskTCB const tsk );
63 
74 RetCode stk_StackClear( PTskTCB const tsk );
75 
80 #endif /* HEADERS_R_RTOS_STACK_H_ */
RetCode stk_StackDestroy(register PTskTCB tsk)
Destroys the stack of the task indicated by the tsk input parameter.
Definition: R_RTOS_stack.c:119
Defines, Typedefs and Macros for the whole system.
RetCode stk_TSTStck(PTskTCB const tsk)
fill the task's stack with a distinctive pattern.
Definition: R_RTOS_stack.c:142
Task Control Block.
Definition: R_RTOS_inc.h:1322
RetCode stk_StackInit(register PTskTCB tsk, void *fktParam)
Initializes the initial stack frame according to the given input parameters.
Definition: R_RTOS_stack.c:56
RetCode stk_StackCreate(register PTskTCB tsk, register StackSize desiredStackSize)
Creates a stack for a task with the size of desiredStackSize.
Definition: R_RTOS_stack.c:26
uint16_t StackSize
Used to describe the size of a stack.
Definition: R_RTOS_inc.h:371
RetCode stk_StackClear(PTskTCB const tsk)
Clears the provided task's stack.
Definition: R_RTOS_stack.c:163
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424