AM263x MCU+ SDK  10.00.00
TaskP.h File Reference

Go to the source code of this file.

Data Structures

struct  TaskP_Load
 Task load statistics. More...
 
struct  TaskP_Object
 Opaque task object used with the task APIs. More...
 
struct  TaskP_Params
 Parameters passed during TaskP_construct. More...
 

Macros

#define TaskP_PRIORITY_LOWEST   (0u)
 Value to be used for lowest priority task. More...
 
#define TaskP_PRIORITY_HIGHEST   (31u)
 Value to be used for highest priority task. More...
 
#define TaskP_LOAD_UPDATE_WINDOW_MSEC   (500u)
 The update rate at which TaskP_loadUpdateAll() is called. More...
 
#define TaskP_OBJECT_SIZE_MAX   (160u)
 Max size of task object across all OS's. More...
 

Typedefs

typedef void(* TaskP_FxnMain) (void *args)
 Entry point to the task. More...
 

Functions

void TaskP_Params_init (TaskP_Params *params)
 Set default values to TaskP_Params. More...
 
int32_t TaskP_construct (TaskP_Object *obj, TaskP_Params *params)
 Create a task object. More...
 
void TaskP_destruct (TaskP_Object *obj)
 Cleanup, delete, destruct a task object. More...
 
void * TaskP_getHndl (TaskP_Object *obj)
 Return OS defined task handle. More...
 
void TaskP_yield (void)
 Yield current task. More...
 
void TaskP_exit (void)
 Exit current task. More...
 
void TaskP_loadGet (TaskP_Object *obj, TaskP_Load *taskLoad)
 Get task load. More...
 
void TaskP_loadUpdateAll (void)
 Updated task load statistics. More...
 
void TaskP_loadResetAll (void)
 Reset task load statistics. More...
 
uint32_t TaskP_loadGetTotalCpuLoad (void)
 Get total CPU load including all task and ISR execution time. More...