Go to the documentation of this file.
21 #define TASK(TaskName) extern void Func ## TaskName(void)
22 #define PTASK(TaskName) &Func ## TaskName
99 #if defined (OS_CONFIG_STACK_MONITORING) && OS_CONFIG_STACK_MONITORING >= 1
100 uint16_t curStackUse;
101 uint16_t maxStackUse;
uint8_t curPrio
Current priority.
enum tasks_e TaskType
Type for task reference.
uint8_t EventMaskType
Data type of the event mask.
uint8_t curNumberOfActivations
Current number of activations.
volatile struct internalResource_s *const internalResource
Pointer to internal resource.
@ EXTENDED
The task is a extended task.
OsTaskSchedule_e
Task scheduling scheme.
struct resource_s * resourceQueue
Current queue of allocated resources.
@ PREEMPTIVE
The task may be preempted by another task.
const uint8_t numberOfActivations
Number of simultaneous activations.
uint8_t *const stack
Pointer to stack base.
TaskStateType curState
Current state of the task.
@ RUNNING
The task is currently running.
enum OsTaskSchedule_e OsTaskSchedule
Task scheduling scheme.
TaskType * TaskRefType
Reference to a task reference.
EventMaskType pendingEvents
Mask of currently pending events.
@ AUTOSTART
Autostart task.
uint8_t * context
Current context/stack pointer.
@ READY
The task is ready to be scheduled.
Data structure for OS resource.
@ SUSPENDED
The task is suspended and will not be scheduled.
const uint8_t prio
Static priority of the task.
const uint16_t stackSize
Size of stack in bytes.
const EventMaskType events
Mask of assigned task events.
enum OsTaskType_e OsTaskType
OSEK task type.
@ WAITING
The task is waiting for an event.
@ BASIC
The task is a basic task, thus unable to wait on an event.
const OsTaskType taskType
Type of task.
enum OsTaskAutostart_e OsTaskAutostart
Task autostart mode.
EventMaskType waitEvents
Mask of events the task is currently waiting on.
OsTaskType_e
OSEK task type.
@ NON_PREEMPTIVE
The task may not be preempted.
const OsTaskAutostart autostart
Whether or not to start the task during startup.
OsTaskAutostart_e
Task autostart mode.
enum OsTaskState_e TaskStateType
Task state.
const pTaskFxn taskFxn
Pointer to task function.
TaskStateType * TaskStateRefType
Type for task state reference.
@ NO_AUTOSTART
Do not autostart task.
Data structure for internal resource.
const OsTaskSchedule taskSchedule
Scheduling-type of task.
@ PRE_READY
The task is ready but its stack is uninitialized.