AutosarOS
Task.h
Go to the documentation of this file.
1 
15 #ifndef TASK_H_
16 #define TASK_H_
17 
18 #include "Types.h"
19 #include "OCB.h"
20 
21 #include <stdint.h>
22 
38 
53 extern StatusType Task_ChainTask(TaskType TaskID);
54 
63 extern StatusType Task_TerminateTask(void);
64 
78 extern StatusType Task_Schedule(void);
79 
90 
101 
105 extern void Task_startup(void);
106 
107 #endif /* TASK_H_ */
TaskType
enum tasks_e TaskType
Type for task reference.
Definition: TaskTypes.h:29
Task_TerminateTask
StatusType Task_TerminateTask(void)
Terminate active task.
Definition: Task.c:115
StatusType
enum StatusType_e StatusType
Type for status.
Task_GetTaskState
StatusType Task_GetTaskState(TaskType TaskID, TaskStateRefType State)
Return the state of a task.
Definition: Task.c:200
TaskRefType
TaskType * TaskRefType
Reference to a task reference.
Definition: TaskTypes.h:36
Task_Schedule
StatusType Task_Schedule(void)
Reschedule current task.
Definition: Task.c:157
Task_ActivateTask
StatusType Task_ActivateTask(TaskType TaskID)
Activate a task.
Definition: Task.c:21
Task_ChainTask
StatusType Task_ChainTask(TaskType TaskID)
Chain task.
Definition: Task.c:54
Types.h
Type definitions.
Task_GetTaskID
StatusType Task_GetTaskID(TaskRefType TaskID)
Return the ID of the task currently running.
Definition: Task.c:188
TaskStateRefType
TaskStateType * TaskStateRefType
Type for task state reference.
Definition: TaskTypes.h:70
OCB.h
Operating System Control Block.
Task_startup
void Task_startup(void)
Startup function for task management.
Definition: Task.c:228