R_RTOS  0.1
DistributedRealTimeOperatingSystemfortheARMCortexMArchitecture
R_RTOS_task.h
Go to the documentation of this file.
1 
14 #ifndef HEADERS_R_RTOS_TASK_H_
15 #define HEADERS_R_RTOS_TASK_H_
16 
17 #include "R_RTOS_inc.h"
18 
19 RetCode tsk_initTsks( void );
20 
36  const TskID tskID,
37  const TskStartAddr const strtAddr,
38  const TskEndAddr const endAddr,
39  const StackSize stkSze );
40 
50 RetCode os_IDLETskInit( const TskStartAddr const strtAddr );
51 
52 //RetCode tsk_setInactvTskPrio( const TskID tskID, const TskPrio tskPrio );
53 
64 RetCode tsk_tskDestroy( PTskTCB const tsk );
65 
66 
81 RetCode tsk_SetEvt( PTskTCB const tsk, PSyncEle const syncEle );
82 
97 RetCode tsk_ClrEvt( PTskTCB const tsk, PSyncEle const syncEle );
98 
110 RetCode tsk_SetInactive( PTskTCB const tsk, TskState tskInactvState );
111 
122 RetCode tsk_ActvTsk( PTskTCB const tsk );
123 
136 RetCode tsk_ChngePrio( PTskTCB const tsk, const TskPrio newTskPrio );
141 #endif /* HEADERS_R_RTOS_TASK_H_ */
unified structure for all synchronization mechanism objects.
Definition: R_RTOS_inc.h:1208
enum tskState TskState
Possible states of tasks.
Defines, Typedefs and Macros for the whole system.
RetCode tsk_ChngePrio(PTskTCB const tsk, const TskPrio newTskPrio)
Definition: R_RTOS_task.c:243
RetCode tsk_ClrEvt(PTskTCB const tsk, PSyncEle const syncEle)
Clear the event that currently blocks the task.
Definition: R_RTOS_task.c:194
FktCall TskStartAddr
function pointer to a task's function with no arguments and no return.
Definition: R_RTOS_inc.h:548
uint8_t TskID
Task identification number (ID).
Definition: R_RTOS_inc.h:532
RetCode tsk_SetInactive(PTskTCB const tsk, TskState tskInactvState)
Set the specified task inactive, remove from active wait queue and set the specified new task state...
Definition: R_RTOS_task.c:212
RetCode tsk_tskDestroy(TskTCB *const tsk)
Destroy the given task.
Definition: R_RTOS_task.c:147
RetCode tsk_tskInit(const TskID tskID, const TskStartAddr const strtAddr, const TskEndAddr const endAddr, const StackSize stkSze)
Creates a task according to the provided input parameters.
Definition: R_RTOS_task.c:82
Task Control Block.
Definition: R_RTOS_inc.h:1322
FktCall TskEndAddr
function pointer to a function which shall be called if a task finishes its execution.
Definition: R_RTOS_inc.h:553
RetCode tsk_SetEvt(PTskTCB const tsk, PSyncEle const syncEle)
Set the event described by syncEle for the specified task.
Definition: R_RTOS_task.c:207
uint16_t StackSize
Used to describe the size of a stack.
Definition: R_RTOS_inc.h:371
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424
enum tskPrio TskPrio
Task priority level.
RetCode os_IDLETskInit(const TskStartAddr const strtAddr)
Creates the IDLE Task.
Definition: R_RTOS_task.c:125