add API (tos_task_create_dyn & tos_task_walkthru & tos_task_curr_task_get)

tos_task_create_dyn: create task with dynamic allocated task handler and stack
tos_task_walkthru: API to walk through the statistic list of all the existing task
tos_task_curr_task_get: get current running task handler
This commit is contained in:
daishengdong
2019-10-23 21:22:13 +08:00
parent c4d928a42b
commit 06cae326a2
58 changed files with 518 additions and 84 deletions

View File

@@ -91,6 +91,7 @@ typedef enum k_err_en {
K_ERR_TASK_SUSPEND_IDLE,
K_ERR_TASK_STK_OVERFLOW,
K_ERR_TASK_STK_SIZE_INVALID,
K_ERR_TASK_OUT_OF_MEMORY,
K_ERR_TICKLESS_WKUP_ALARM_NOT_INSTALLED = 2000u,
K_ERR_TICKLESS_WKUP_ALARM_NO_INIT,