55 #ifndef ti_dpl_TaskP__include 56 #define ti_dpl_TaskP__include 74 #define TaskP_STRUCT_SIZE (340) 76 #define TaskP_STRUCT_SIZE (104) 83 #define TaskP_DEFAULT_STACK_SIZE (512) ADC_Params params
Definition: Driver_Init.h:11
uint32_t dummy
Definition: TaskP.h:92
char * name
Definition: TaskP.h:125
TaskP_Struct * TaskP_Handle
Opaque client reference to an instance of a TaskP.
Definition: TaskP.h:120
size_t stackSize
Definition: TaskP.h:131
void TaskP_restoreScheduler(uintptr_t key)
Function to re-enable task scheduling.
int priority
Definition: TaskP.h:129
TaskP_Handle TaskP_construct(TaskP_Struct *obj, TaskP_Function fxn, const TaskP_Params *params)
Construct a TaskP from statically allocated memory.
uint8_t data[(104)]
Definition: TaskP.h:93
TaskP_State TaskP_getState(TaskP_Handle task)
Get the current state of a task handle.
void TaskP_delete(TaskP_Handle task)
Delete a TaskP.
TaskP_State
Enum returned from TaskP_getState().
Definition: TaskP.h:99
void TaskP_destruct(TaskP_Struct *obj)
Destruct a TaskP.
void TaskP_yield(void)
Create a scheduler point, yielding to equal priority tasks.
TaskP_Handle TaskP_getCurrentTask(void)
Get the currently executing task handle.
void * arg
Definition: TaskP.h:127
union TaskP_Struct TaskP_Struct
TaskP structure.
TaskP structure.
Definition: TaskP.h:90
void TaskP_Params_init(TaskP_Params *params)
Initialize params structure to default values.
TaskP_Handle TaskP_create(TaskP_Function fxn, const TaskP_Params *params)
Create a TaskP, allocating memory on the heap.
uintptr_t TaskP_disableScheduler(void)
Function to disable task scheduling.
void(* TaskP_Function)(void *)
Task function definition, passed to create and construct.
Definition: TaskP.h:143
void * stack
Task stack pointer. NULL should be used when calling TaskP_create. A pointer to a current stack shoul...
Definition: TaskP.h:135
#define TaskP_STRUCT_SIZE
Number of bytes greater than or equal to the size of any RTOS Task object.
Definition: TaskP.h:76