For more details and example usage, see Task
◆ TaskP_PRIORITY_LOWEST
#define TaskP_PRIORITY_LOWEST (0u) |
Value to be used for lowest priority task.
◆ TaskP_PRIORITY_HIGHEST
#define TaskP_PRIORITY_HIGHEST (31u) |
Value to be used for highest priority task.
◆ TaskP_LOAD_UPDATE_WINDOW_MSEC
#define TaskP_LOAD_UPDATE_WINDOW_MSEC (500u) |
◆ TaskP_OBJECT_SIZE_MAX
#define TaskP_OBJECT_SIZE_MAX (160u) |
Max size of task object across all OS's.
◆ TaskP_FxnMain
typedef void(* TaskP_FxnMain) (void *args) |
◆ TaskP_Params_init()
Set default values to TaskP_Params.
Strongly recommended to be called before seting values in TaskP_Params
- Parameters
-
params | [out] parameter structure to set to default |
◆ TaskP_construct()
Create a task object.
- Parameters
-
obj | [out] Created object |
params | [in] Task create parameters |
- Returns
- SystemP_SUCCESS on success, SystemP_FAILURE on error
◆ TaskP_destruct()
Cleanup, delete, destruct a task object.
- Parameters
-
◆ TaskP_getHndl()
Return OS defined task handle.
- Parameters
-
- Returns
- OS specific task handle
◆ TaskP_yield()
void TaskP_yield |
( |
void |
| ) |
|
◆ TaskP_exit()
Exit current task.
In FreeRTOS, task cannot simply return from a function. It needs to call vTaskDelete(NULL) instead. To keep the task exit portable, call this function when a task wants to terminate itself.
◆ TaskP_loadGet()
Get task load.
- Parameters
-
obj | [out] Created object |
taskLoad | [out] Task load statistics |
◆ TaskP_loadUpdateAll()
void TaskP_loadUpdateAll |
( |
void |
| ) |
|
◆ TaskP_loadResetAll()
void TaskP_loadResetAll |
( |
void |
| ) |
|
Reset task load statistics.
Until load statistics is reset the load statistics keep getting accumulated
◆ TaskP_loadGetTotalCpuLoad()
uint32_t TaskP_loadGetTotalCpuLoad |
( |
void |
| ) |
|
Get total CPU load including all task and ISR execution time.
- Returns
- CPU load in units of percentage with 2 decimal point precision, i.e 1234 means 12.34%